The greenhouse effect is primarily caused by the presence of certain gases, like carbon dioxide and methane, in the atmosphere. These gases trap heat from the sun, resulting in the warming of the Earth's surface. Human activities, such as burning fossil fuels, contribute to an increase in greenhouse gas emissions, intensifying the greenhouse effect and leading to climate change .