The greenhouse effect is a natural process that warms the Earth's surface. When the sun's energy reaches the Earth, some of it is reflected back to space and the rest is absorbed and re-radiated by greenhouse gases in the atmosphere, such as carbon dioxide and methane. These gases trap heat, thus keeping the Earth warm enough to sustain life.
Global warming is the long-term increase in Earth's average surface temperature due to human activities, such as burning fossil fuels, deforestation, and industrial processes. These activities increase the concentration of greenhouse gases in the atmosphere, enhancing the greenhouse effect and leading to a rise in global temperatures. This phenomenon has serious consequences, including rising sea levels, extreme weather events, and disruptions to ecosystems.