The sporophyte (heterosporous) produces a male and female spore. The male spore is housed in the anther of the sporangia where it develops into a gametophyte before it is released.
The gametophyte is composed of 2 cells, a pollen tube cell and a cell that becomes the 2 sperms during fertilization.
When the male gametophyte (pollen) is transferred (by water, wind, animals, explosions, etc.) onto the stigma of a flower, the pollen tube cell starts developing into the pollen tube reaching down the stigma through the style and attaching to an ovule in the ovary.
- This is pollination
Inside the ovule, the female spores are produced which then develop into female gametophytes. Each gametophyte produces 4 gametes but only 1 survives which's consists of an egg cell and a polar nuclei body and 6 other cells.
When the sperm reach the ovule, one sperm fertilizes the egg and the other fertilized the polar nuclear body developing into an endosperm that acts as a source of nutrition later on for the seed.
-> Fertilization
The zygote then develops into a seed in the ovary and when fully mature, the ovary develops into a fruit to protect the seed and acts as a vehicle for transportation for the seed.