You have to stop burning fossil fuels (coal, oil and natural gas) in industry, transport and the generation of electricity, which releases carbon dioxide (CO2).
Also improve agricultural practices in rice growing and cattle and pig farming which release methane (CH4) into the atmosphere.