NASA scientists attribute the global warming trend observed since the mid-20th century to the human expansion of the "greenhouse effect" — warming that results when the atmosphere traps heat radiating from Earth toward space. Certain gases in the atmosphere block heat from escaping. Long-lived gases that remain semi-permanently in the atmosphere and do not respond physically or chemically to changes in temperature are described as "forcing" climate change. Gases, such as water vapor, which respond physically or chemically to changes in temperature are seen as "feedbacks."
Gases that contribute to the greenhouse effect include:
Not enough greenhouse effect: The planet Mars has a very thin atmosphere, nearly all carbon dioxide. Because of the low atmospheric pressure, and with little to no methane or water vapor to reinforce the weak greenhouse effect, Mars has a largely frozen surface that shows no evidence of life.
Too much greenhouse effect: The atmosphere of Venus, like Mars, is nearly all carbon dioxide. But Venus has about 154,000 times as much carbon dioxide in its atmosphere as Earth (and about 19,000 times as much as Mars does), producing a runaway greenhouse effect and a surface temperature hot enough to melt lead.
On Earth, human activities are changing the natural greenhouse. Over the last century the burning of fossil fuels like coal and oil has increased the concentration of atmospheric carbon dioxide (CO2). This happens because the coal or oil burning process combines carbon with oxygen in the air to make CO2. To a lesser extent, the clearing of land for agriculture, industry, and other human activities has increased concentrations of greenhouse gases.
The consequences of changing the natural atmospheric greenhouse are difficult to predict, but certain effects seem likely:
In its Fifth Assessment Report, the Intergovernmental Panel on Climate Change, a group of 1,300 independent scientific experts from countries all over the world under the auspices of the United Nations, concluded there's a more than 95 percent probability that human activities over the past 50 years have warmed our planet. The industrial activities that our modern civilization depends upon have raised atmospheric carbon dioxide levels from 280 parts per million to 400 parts per million in the last 150 years. The panel also concluded there's a better than 95 percent probability that human-produced greenhouse gases such as carbon dioxide, methane and nitrous oxide have caused much of the observed increase in Earth's temperatures over the past 50 years.

Solar Irradiance
The above graph compares global surface temperature changes (red line) and the Sun's energy that Earth receives (yellow line) in watts (units of energy) per square meter since 1880. The lighter/thinner lines show the yearly levels while the heavier/thicker lines show the 11-year average trends. Eleven-year averages are used to reduce the year-to-year natural noise in the data, making the underlying trends more obvious.
The amount of solar energy that Earth receives has followed the Sun’s natural 11-year cycle of small ups and downs with no net increase since the 1950s. Over the same period, global temperature has risen markedly. It is therefore extremely unlikely that the Sun has caused the observed global temperature warming trend over the past half-century. It's reasonable to assume that changes in the Sun's energy output would cause the climate to change, since the Sun is the fundamental source of energy that drives our climate system. Indeed, studies show that solar variability has played a role in past climate changes. For example, a decrease in solar activity coupled with an increase in volcanic activity is thought to have helped trigger the Little Ice Age between approximately 1650 and 1850, when Greenland cooled from 1410 to the 1720s and glaciers advanced in the Alps. But several lines of evidence show that current global warming cannot be explained by changes in energy from the Sun: