What is the Function of a Chloroplast?

Chloroplasts are the structural and functional units where photosynthesis takes place. They have chlorophill, the green pigment which traps light energy for photosynthesis.