Pteridophytes produce two kinds of spores. This phenomena is called heterospory.
The microspore is reduced/small male gametophytes produced whereas megaspores are bigger female gametophytes produced. The development of the zygotes into embryos take place within the female gametophytes. This event is a precursor to the seed habit considered as an important step in evolution.