CO2 is a non-combustible gas and extinguishes fire in two ways:
(i) It is heavier than oxygen and it covers the fire like a blanket and cuts off the contact between oxygen and fuel.
(ii) In cylinders, CO2 is kept in the liquid form. When released, it expands enormously. This brings down the temperature of the fuel, which helps in controlling the fire.