Global warming is defined as the increase in average surface temperatures due to rising greenhouse gas emissions. The main greenhouse gases are carbon dioxide, methane, and nitrous oxide. Global warming occurs due to the greenhouse effect, where greenhouse gases trap heat in the atmosphere. The main sources of greenhouse gas emissions are electricity production, transportation, industry, agriculture, and deforestation. Consequences of global warming include more extreme weather, rising sea levels, wildfires, extinction of species, spread of diseases, and food shortages.