Spermatogenesis is a long and complex process that, despite the shared overall goal of producing the male gamete, displays striking amounts of interspecific diversity. In this review, we argue that sperm competition has been an important selection pressure acting on multiple aspects of spermatogenesis, causing variation in the number and morphology of sperm produced, and in the molecular and cellular processes by which this happens. We begin by reviewing the basic biology of spermatogenesis in some of the main animal model systems to illustrate this diversity, and then ask to what extent this variation arises from the evolutionary forces acting on spermatogenesis, most notably sperm competition. We explore five specific aspects of spermatogenesis from an evolutionary perspective, namely: (i) interspecific diversity in the number and morphology of sperm produced; (ii) the testicular organizations and stem cell systems used to produce them; (iii) the large number and high evolutionary rate of genes underpinning spermatogenesis; (iv) the repression of transcription during spermiogenesis and its link to the potential for haploid selection; and (v) the phenomenon of selection acting at the level of the germline. Overall we conclude that adopting an evolutionary perspective can shed light on many otherwise opaque features of spermatogenesis, and help to explain the diversity of ways in which males of different species perform this fundamentally important proces