The process by which greenhouse gases trap heat in the Earth's atmosphere and contribute to global warming.