electromagnetic radiation passes through earths atmosphere
earth absorbs most radiation and warms up
earth radiates energy as infrared radiation
some of the IR goes into space
some IR absorbed by greenhouse gases in atmosphere
atmosphere warms up leading to global warming