The spermatozoon is a highly differentiated and polarized cell, with two main structures: the head, containing a haploid nucleus and the acrosomal exocytotic granule, and the flagellum, which generates energy and propels the cell; both structures are connected by the neck. The sperm's main aim is to participate in fertilization, thus activating development. Despite this common bauplan and function there is an enormous diversity in structure and performance of sperm cells. For example, mammalian spermatozoa may exhibit several head patterns and overall sperm lengths ranging from ~30 to 350 µm. Mechanisms of transport in the female tract, preparation for fertilization, and recognition and interaction with the oocyte also show considerable variation. There has been much interest in understanding the origin of this diversity, both in evolutionary terms and in relation to mechanisms underlying sperm differentiation in the testis. Here, relationships between sperm bauplan and function are examined at two levels. First, analyzing the selective forces that drive changes in sperm structure and physiology to understand the adaptive values of this variation and impact on male reproductive success. Second, examining cellular and molecular mechanisms of sperm formation in the testis that may explain how differentiation can give rise to such a wide array of sperm forms and functions.