Answer:
By heat trap mechanisms...
Step-by-step explanation:
The main green house gases in our atmosphere are Carbon dioxide, Nitrous oxide, water vapors and ozone. All of these gases have a property of heat trap that trap the heat waves coming from the sun and heat up our atmosphere as a result. This is the reason why Venus is farther from sun but is more hotter than mercury because of it's dense Carbon Dioxide atmosphere.