Photosynthesis occurs mainly in the leaves, particularly in chloroplast-rich mesophyll cells. Chlorophyll absorbs light energy, which is used to convert carbon dioxide and water into carbohydrates while releasing oxygen.