Greenhouse gases contribute to global warming and climate change by trapping heat in the Earth's atmosphere. This leads to a range of environmental issues including rising sea levels, extreme weather events, loss of biodiversity, and changes in agricultural productivity.