The greenhouse effect occurs when gases in the atmosphere like carbon dioxide trap heat from the sun, warming the planet. Global warming is an increase in average temperatures due to human activities that release greenhouse gases. As greenhouse gas levels rise from fossil fuel use, deforestation, waste, and industrial emissions, the climate changes with consequences like rising seas, more extreme weather, and desertification, threatening coastal cities and ecosystems. Reducing energy use, transitioning to renewables, and increasing forestation can help mitigate the effects of climate change.