What is the main function of chlorophyll pigment?

To absorb light of specific wavelength in the visible regions.