There is a natural greenhouse effect that contributes to warming. Greenhouse gases trap heat and thus warm the Earth because they prevent a significant proportion of infrared radiation from escaping into space.