From: Moduli space
we see that moduli of curves is a very algebro-geometric topic.
It is easy to understand its relevance and importance in algebraic geometry. But the mind boggles when we try to imagine how on earth such a topic from pure and abstruse mathematics is relevant in physics.
I will be thankful if somebody can give some explanation.
In string theory, a particle is actually a string. In closed string theory, it is a closed string, i.e. a loop. As time progresses, this loop will trace out a surface (its worldsheet). If you follow the particle from its creation to its destruction, this surface will be closed.
For certain computations of physical quantities attached to the worldsheet (and perhaps at this point someone with more expertise can add details) one has to choose a conformal structure on the worldsheet; but to get an answer independent of the choice, one then integrates over all possible conformal structures; or sometimes one can show that the quantity computed is independent of the conformal structure (perhaps because it is computed by a horizontal section of a bundle with connection over the space of conformal structures).
Finally, we note that the space of all conformal structures on a closed topological surface of genus $g$ is the same as the moduli space of algebraic curves of genus $g$.