Sperm is the male reproductive cell, or gamete, that is necessary for fertilization to occur. It is produced in the male testes and consists of a head, which contains genetic material, a midpiece packed with mitochondria for energy, and a tail that propels it forward. The primary function of sperm is to carry the male's genetic information to the female's egg.