Gametogenesis is the combination of all the processes needed to make gametes (or sex cells, the egg and the sperm). Gametogenesis refers to spermatogenesis in the male and oogenesis in the female. During gametogenesis, diploid precursor cells go thorough meiosis to produce haploid cells, and these haploid cells go through processes of differentiation to form mature gametes capable of undergoing fertilization.