In this article, we solve the problem of constructing moduli spaces of semistable principal bundles (and singul