The main function of the petal of a flower is to attract pollination agents. Petals are often brightly colored and have distinctive shapes to attract pollinators such as insects, birds, and bats. The scent of the petals also helps in attracting these pollinators. When the pollinator lands on the petals, it picks up or deposits pollen, which helps in the reproduction of the plant. Therefore, petals play a crucial role in the process of pollination and the reproductive success of the plant.