Mostly the CFCs (chlorofluorocarbon) damages the ozone layer. So the ozone layer depletes due to these gases which allow the UV radiations to enter the Earth making the Earth more warm than normal and affects the temperature leading to global warming.