The spermatozoa of animals are produced through spermatogenesis inside the male gonads (testicles) via meiotic division.