Global warming refers to the long-term rise in the average temperature of the Earth's climate system, primarily due to the increase in greenhouse gases such as carbon dioxide (CO2), methane (CH4), and nitrous oxide (N2O). These gases trap heat in the atmosphere, leading to numerous environmental impacts such as melting polar ice caps, rising sea levels, and changes in weather patterns.