Gynoecium or pistil has carpels which have ovules in the ovary.
Ovules are of various types. The most common one is anatropous ovule.
Anatropous ovule has only one megaspore mother cell which undergoes reduction division and forms four haploid megaspores.
One megaspore develops into the female gametophyte or embryo sac within the ovule which has 8-nuclei and 7-cells. It has an egg apparatus with three cells out of which one is egg cell and the two others are synergids. The central cell has two polar nuclei. At the posterior side, there are three antipodals.
The pollen tube enters the ovule and eventually into its embryo sac through synergid and discharges its two male gametes.
Angiosperms produce seeds enclosed within fruits that are formed from ovary.