The function of a flower is to make male and female gametes and to ensure that fertilisation will take place to make new seeds for the reproduction of plant.