Compactifying the moduli space of surfaces

In this expository talk I'll give an introduction to the problems arising in the definition of moduli spaces of varieties of dimension higher than one and in particular in the construction of the compactification of the moduli space of surfaces of general type. No proof will be presented, the spirit is to give an outline as clear as possible and some explicit examples of pathologies.