Gametogenesis is the development of gametes (sex cells) through spermatogenesis and oogenesis. Spermatogenesis occurs in the testes and produces sperm through meiosis. Oogenesis occurs in the ovaries and produces eggs through meiosis, which is more complex than spermatogenesis. Fertilization occurs when a sperm fuses with an egg to form a zygote, which contains a full set of chromosomes and begins rapidly dividing to form an embryo.