Gametogenesis is the process by which germ cells undergo meiosis and differentiation to form gametes. Primordial germ cells migrate to the developing gonads, where they differentiate into male or female gametes. In females, primordial germ cells become oogonia then oocytes through oogenesis. In males, they become spermatogonia and undergo spermatogenesis to become spermatozoa. Both processes involve mitosis, meiosis, and cellular changes to produce haploid gametes from diploid germ cells. Fertilization restores the diploid number through the union of male and female gametes.