From the fire triangle, it is known that a fire needs fuel, oxygen and heat. To control a fire, removing one of these three things will cause the fire to go out. To keep the fire in the area it is supposed to be in, the fire can be smothered, removing oxygen. Or it can be sprayed with water, removing the heat. And the fire finishes when there is no more fuel.