Greenhouse effect is the phenomenon in which earth’s atmosphere traps the heat from the sun and prevents it from escaping into the outer space. The main examples of greenhouse gases present in earth’s atmosphere are carbon dioxide, methane, nitrous oxide and ozone.