Gunpowder, also known as black powder to distinguish it from modern smokeless gunpowder, is the earliest known chemical explosive. It consists of a mixture of sulfur, charcoal, and potassium nitrate (saltpeter). The sulfur and charcoal act as fuels while the saltpeter is an oxidizer. Because of its incendiary properties and the amount of heat and gas volume that it generates, gunpowder has been widely used as a propellant in firearms, rockets, fireworks, and as a blasting powder in quarrying, mining, and road building.
Gunpowder was invented in 9th century China and spread throughout most parts of Eurasia by the end of the 13th century. Most arguments on early gunpowder developments now revolve around how much Chinese advancements in gunpowder influenced gunpowder warfare in Europe and the Middle East, but controversy over gunpowder's precise origins continue to be debated today.
Gunpowder is classified as a low explosive because of its relatively slow decomposition rate and consequently low brisance. Low explosives deflagrate (i.e., burn) at subsonic speeds, whereas high explosives detonate, producing a supersonic wave. Ignition of powder packed behind a bullet must generate enough pressure to force it from the muzzle at high speed, but not enough to rupture the gun barrel. Gunpowder thus makes a good propellant, but is less suitable for shattering rock or fortifications. Gunpowder was widely used to fill artillery shells and in mining and civil engineering to blast rock until the second half of the 19th century, when the first high explosives were put into use. Gunpowder is no longer used in modern weapons nor is it used for industrial purposes due to its relatively inefficient cost compared to newer alternatives such as dynamite and ammonium nitrate/fuel oil (ANFO). Today gunpowder firearms are limited primarily to hunting, target shooting, and bulletless historical reenactments.