The foam smothers the fire in solids and liquids (Class A and B), but not in burning fats or cooking oils (Class F), so foam fire extinguishers are used on burning liquids such as petrol, paint or turpentine.