The use of fire in warfare has a long history. Fire was the basis of all early thermal weapons. Homer detailed the use of fire by Greek soldiers who hid in a wooden horse to burn Troy during the Trojan war. Later the Byzantine fleet used Greek fire to attack ships and men. In the First World War, the first modern flamethrowers were used by infantry, and were successfully mounted on armoured vehicles in the Second World War. In the latter war, incendiary bombs were used by Axis and Allies alike, notably on Tokyo, Rotterdam, London, Hamburg and, notoriously, at Dresden; in the latter two cases firestorms were deliberately caused in which a ring of fire surrounding each city was drawn inward by an updraft caused by a central cluster of fires. The United States Army Air Force also extensively used incendiaries against Japanese targets in the latter months of the war, devastating entire cities constructed primarily of wood and paper houses. The use of napalm was employed in July 1944, towards the end of the Second World War; although its use did not gain public attention until the Vietnam War. Molotov cocktails were also used.
Setting fuel aflame releases usable energy. Wood was a prehistoric fuel, and is still viable today. The use of fossil fuels, such as petroleum, natural gas, and coal, in power plants supplies the vast majority of the world's electricity today; the International Energy Agency states that nearly 80% of the world's power came from these sources in 2002. The fire in a power station is used to heat water, creating steam that drives turbines. The turbines then spin an electric generator to produce electricity. Fire is also used to provide mechanical work directly, in both external and internal combustion engines.