The sporophyte produces spores (hence the name), by meiosis. These develop into a gametophyte. Both the spores and the resulting gametophyte are haploid, meaning they have half as many chromosomes. Later, the mature gametophyte produces male or female gametes (or both) by mitosis. The fusion of male and female gametes (fertilization) produces a diploid zygote which develops into a new sporophyte. This is the cycle which is known as alternation of generations or alternation of phases.