Greenhouse gas in the atmosphere (water vapor, carbon dioxide, methane, nitrous oxide and chlorofluorocarbons) keep some of the heat from escaping.
Human activities, like the burning of fossil fuels, have increased the amount of CO2 in the atmosphere by more than a third since the Industrial Revolution.