<human>:  How does climate change affect biodiversity?
<bot>: Climate change affects biodiversity in many ways. Rising average global temperatures can lead to species becoming more rare or even extinct, as they are unable to survive in the changed environment. Predicted increases in extreme weather events and changes in patterns of precipitation can lead to shifting of ranges of species, resulting in changes in the local areal of biodiversity. Changes in ocean chemistry as a result of increasing levels of carbon dioxide can lead to health risks and mortality in some species, resulting in decreases in biodiversity.