When to use water to extinguish a fire and when not to?

When we think about putting out a fire, the first thing that comes to mind is almost certainly throwing water on it. But is that always the best option? The answer is no, each flammable material needs to be extinguished in a different way.