One way to put out fires is to spray them with water. The water does two things: it vaporizes when it comes in contact with fire. The water vapor leaves the fire with less oxygen, which it needs to keep burning. The other thing water does is make things cooler. That can keep the fire from burning because things will not burn if they are not hot enough.