Meiosis produces haploid gametes, ensuring genetic diversity and the correct chromosome number in offspring.