Langlands, in his [Antwerp II article][1], was the first to show that the zeta function of a modular curve is exactly the product (well, some of the $L$-functions are in the denominator) of $L$-functions of modular forms (previous results of Eichler, Shimura, Kuga, Sato, Ihara showed the equality up to finitely many factors). He used a comparison of the Lefschetz trace formula and the Arthur–Selberg trace formula to accomplish this. This set up a basic approach to proving that zeta functions of Shimura varieties are products of automorphic $L$-functions which Langlands spent a few papers developing (check out the section on Shimura varieties of his "complete works" website [here][2]). This approach involves knowing something specific about the structure of the points mod $p$ of a Shimura variety. The paper of Langlands and Rapoport at the above link is where the Langlands–Rapoport conjecture on the points mod $p$ is first spelled out carefully, but there are other places to read about it (in English! and improved/simplified) such as several of Milne's papers such as his [article in Motives II][3] or his [article in the Montréal proceedings][4] (which, incidentally, are the proceedings of a conference pretty much whose sole purpose was to prove the zeta function of the Shimura variety associated to a unitary group in three variables (a *Picard modular surface*) is a product of automorphic $L$-functions) (the book is called *The zeta functions of Picard modular surfaces*, edited by Langlands and Ramakrishnan), and Kottiwtz's [JAMS article][5] which begins with a historical overview. The modularity theorem, as first suggested by Taniyama, was in terms of $L$-functions. Basically, he said that if Hasse was correct and the $L$-function of an elliptic curve had analytic continuation and satisfied a functional equation then the inverse Mellin transform of the $L$-function of an elliptic curve could very well be a weight 2 modular form (see Shimura's [article on Taniyama][6]). The formulation in terms of a modular parametrization came from Shimura's work in the late 50s and 60s on constructing quotients of Jacobians of modular curves attached to modular forms, since some of those quotients were indeed elliptic curves over **Q** (whose $L$-functions matched up as they should). So, perhaps one could say that modular curves come up in Shimura–Taniyama because, if Hasse's conjecture that the $L$-function of an elliptic curve has analytic continuation and functional equation is true, then the inverse Mellin transform of it is a differential form on a modular curve. Modular curves/forms were interesting to mathematicians way before the 1950s. Poincaré, for one, studied them, but that's a bit far back in time to be my area of expertise. [1]: http://sunsite.ubc.ca/DigitalMathArchive/Langlands/shimura.html#antwerp [2]: http://sunsite.ubc.ca/DigitalMathArchive/Langlands/shimura.html [3]: http://jmilne.org/math/articles/1994bP.pdf [4]: http://jmilne.org/math/articles/1992aP.pdf [5]: http://www.jstor.org/stable/2152772 [6]: http://dx.doi.org/10.1112/blms/21.2.186