Photosynthesis primarily takes place in the chloroplasts of plant cells. Chloroplasts are specialized organelles that contain the pigment chlorophyll, which captures light energy. Histologically, chloroplasts are found in the mesophyll cells of leaves, specifically within the palisade and spongy layers. These cells are structured to maximize light absorption and gas exchange.