The resulting zygote developed into the next sporophyte generation while still inside the single large female megaspore in the sporangium of the parent sporophyte. The evolution of heterospory and endospory were among the earliest steps in the evolution of seeds of the kind produced by gymnosperms and angiosperms.