The major function of petals is to attract insects for pollination and to protect the reproductive organs, which are at the centre of the flower.