Heterospory and seed habit in pteridophytes.
Heterospory originated from some spores degenerating in sporangia, allowing the surviving spores to grow larger. This led to megaspores producing female gametophytes and microspores producing male gametophytes. In heterosporous plants like Selaginella, the retention and germination of megaspores inside megasporangia brought them closer to seed habit, though true seeds did not form until gymnosperms evolved integuments around ovules. Heterospory played a significant role in the evolution of seed habit and seeds in higher plants by establishing dependencies that facilitated embryogenesis.