Megaspores are a type of spore found in heterosporous plants that germinate into a female gametophyte containing egg cells. Megasporogenesis is the formation of megaspores inside the ovule of seed plants. A diploid cell called the megasporocyte undergoes meiosis to form four haploid megaspores, though typically only one develops into a megagametophyte while the others disintegrate. This process of megaspore formation inside the ovule leads to the development of the embryo sac within the mature megagametophyte.