Chlorophyll is a pigment essential for photosynthesis in plants and algae.