Thylakoid membranes are the internal membrane structures found within chloroplasts, which are essential for the process of photosynthesis in plants and algae. These membranes contain chlorophyll and other pigments that capture light energy, facilitating the conversion of solar energy into chemical energy through the formation of ATP and NADPH. The arrangement of thylakoid membranes into stacks, known as granum, increases their surface area and efficiency in energy capture.