A Class B fire extinguisher is used for flammable liquids such as gasoline, oil, grease, and solvents. These extinguishers are typically filled with a dry chemical powder or foam that works to smother the fire and prevent it from spreading. It is important to have the correct type of fire extinguisher on hand for the specific type of fire you may encounter.