Process of forming reproductive cells known as gametes, which in germ cells are haploid cells responsible for fertilization.