The main cause of global warming is the greenhouse effect, carbon dioxide and burning fossil fuels.
Carbon dioxide and nitrous oxide and other greenhouse gases will stay in the atmosphere for many years making it impossible to stop global warming for many years.