In this paper, we prove that a smooth projective curve over a finite field can be recovered from L-functions associated to the Hilbert class field of the curve and its constant field extensions. As a consequence, we give a new proof of the theorem of Mochizuki and Tamagawa that an isomorphism between the fundamental groups of two such curves comes from an isomorphism between the curves themselves.