There are many methods of extinguishing a fire, including using water, disconnecting power to the area, and using special foam or chemicals. The best method for any particular situation will depend on the type of fire, the location of the fire, and the availability of resources.