Forests play a crucial role in carbon sequestration as they absorb carbon dioxide from the atmosphere during photosynthesis and store it in their biomass and soils. This helps mitigate climate change by reducing the amount of greenhouse gases in the atmosphere.