Photosynthetic pigments are essential for the light-dependent reactions of photosynthesis. They absorb light energy, which is then used to convert carbon dioxide and water into glucose and oxygen. This process not only provides energy for the plant but also produces oxygen, crucial for life on Earth.