How do wet chemicals extinguish a fire?

Wet chemical fire extinguishers are effective against Class A and F fires. They function in two ways: first, by cooling the fire and oil; second, by reacting to produce a thick foam that smothers the fat and stops it from re-igniting.