During the combustion of hydrocarbons, carbon dioxide gas is released which is one of the main components of global warming. Increased level of carbon dioxide traps the heat of sun inside the earth atmosphere, which results in increasing the temperature of the earth.