Fire requires heat, fuel and oxygen to burn according to the principles of combustion. Fires can be extinguished by cooling, smothering or starving the fire of oxygen. Fires are classified into types A through E based on the material burning, and different extinguishers like water, dry powder or CO2 should be used depending on the class of fire. Proper prevention methods can reduce fire risks.