Abstract: When $X$ is a {\it smooth complex projective surface} and $H$ is a simple algebraic group , we construct the algebro--geometric=20 Donaldson--Uhlenbeck compactification of the moduli space of $\mu$--stable principal $H$--bundles with fixed characteristic classes and describe its points.