The diversity of species and genes in ecological communities affects the functioning of these communities. These ecological effects of biodiversity in turn affect both climate change through enhanced greenhouse gases, aerosols and loss of land cover, and biological diversity, causing a rapid loss of ecosystems and extinctions of species and local populations.