The History of Gunpowder
The Accident That Changed Everything
Gunpowder was not invented by a weapons designer. It was discovered by Chinese alchemists looking for something else entirely: the elixir of immortality. Somewhere between the 7th and 9th centuries AD, a Taoist practitioner experimenting with saltpeter, charcoal, and sulfur got an explosive result instead of eternal life. The mixture burned, flashed, and in large enough quantities, detonated.
The irony is notable. A search for a way to cheat death produced one of history's most efficient tools for delivering it.
Early Chinese Uses: Fireworks Before Firearms
The first recorded Chinese use of gunpowder was not military. Texts from the Tang dynasty describe something called "fire medicine" used in Taoist rituals and, eventually, in fireworks. The brilliant flashes and loud bangs served ceremonial purposes and were used to drive off evil spirits. From there, it was a short conceptual jump to using the same effect to drive off enemies.
By the 10th century, Chinese military engineers were experimenting seriously. Early weapons included fire arrows, which were conventional arrows with small explosive packets attached, and fire bombs thrown by catapult. The Song dynasty, which faced constant military pressure from northern enemies including the Jurchen Jin and later the Mongols, became the first major laboratory for gunpowder weaponry at scale.
Around 1044, a Chinese military manual called the Wujing Zongyao recorded multiple gunpowder formulas. These weren't optimized for modern explosive power, but they worked. Fire lances, early versions of the flamethrower that used gunpowder to propel flames, appeared in the 10th century. The first recognizable guns, metal barrels that fired projectiles using a gunpowder charge, appeared in China around the 13th century.
The Mongols as Transmitters
One of history's great ironies is that the Mongols, who conquered much of China and at one point used Chinese gunpowder weapons against Chinese cities, became the primary vector for spreading gunpowder technology westward. As Mongol armies swept across Central Asia into Persia and toward Europe in the 13th century, they brought knowledge of fire weapons with them.
The Islamic world absorbed and refined this knowledge rapidly. By the 13th century, Arabic texts were describing gunpowder formulas. By the early 14th century, the first European references to gunpowder appear. The technology moved along the same Silk Road networks that carried silk, spices, and ideas in both directions.
Roger Bacon, the English friar and early empiricist, recorded a gunpowder formula around 1267, though he encoded it to prevent misuse. This suggests European awareness of gunpowder earlier than is sometimes claimed. By 1326, a Florentine document shows an illustration of what appears to be a cannon. European armies were about to change forever.
How Gunpowder Rewrote the Rules of Warfare
The medieval world was organized around the castle and the armored knight. Castles, built of thick stone and perched on defensible high ground, had kept armies out for centuries. Knights in plate armor were the tanks of their age: expensive, nearly impossible to kill without specialized equipment, and decisive on the battlefield.
Gunpowder weapons dismantled both of these advantages within about 150 years.
Early cannons were unreliable, slow to load, and as dangerous to their operators as to the enemy. But they improved fast. By the mid-15th century, the Ottoman sultan Mehmed II used enormous bronze cannons at the siege of Constantinople in 1453 to bring down walls that had resisted attackers for a thousand years. The walls fell in 55 days. The age of the impregnable castle was over.
On the battlefield, early firearms were similarly crude. The arquebus, a heavy matchlock gun, was slow to reload and inaccurate beyond short range. But even an inaccurate firearm in the hands of a peasant conscript could kill a knight who had cost a fortune to train and equip. The economic logic was brutal: firearms made trained, expensive soldiers vulnerable to cheap, easily trained ones. This reshaped not just armies but the social structures that armies reflected.
The Formula: What Actually Makes It Work
Gunpowder is a mixture of three components: potassium nitrate (saltpeter), charcoal, and sulfur. The approximate modern ratio for black powder is 75% saltpeter, 15% charcoal, and 10% sulfur. But the ratio matters less than people think. The key ingredient is saltpeter, which provides the oxygen that makes the rapid combustion possible even when packed tightly into a closed space with no air.
Early gunpowder formulas often used too little saltpeter and were more incendiary than explosive. Getting the chemistry right was a process of centuries of trial and error. The development of "corning," grinding the mixture into small uniform grains, was a major advance that made gunpowder dramatically more powerful and consistent. Corned powder from the 15th century was roughly three times more powerful than the serpentine (fine-ground) powder it replaced.
Saltpeter was the limiting resource. It occurs naturally in certain soils, particularly in warm regions with specific bacterial activity, and it can be extracted from urine and dung. European states developed entire industries for collecting and processing saltpeter. In England, "saltpeter men" had legal authority to dig up floors in stables, barns, and homes in search of nitrate-rich soil, an authority that caused considerable resentment.
Gunpowder and the Rise of the Nation-State
The social consequences of gunpowder were as significant as the military ones. When any moderately well-funded force could reduce a castle to rubble, the defensive advantage that allowed small, semi-autonomous lords to resist central authority disappeared. Feudalism's fragmented power structure depended on castles. Without that advantage, smaller political units were absorbed by larger ones.
Kings who could afford large cannon foundries and professional armies grew more powerful relative to the nobility. The consolidation of France, Spain, and England as unified monarchies in the 15th and 16th centuries was accelerated, though not caused, by this shift in military technology. Gunpowder helped make the modern nation-state possible.
It also changed who fought. The knight's skills took years to develop and required a specific class background. Firearms could be taught in weeks. Armies grew in size and changed in composition. Mass conscript forces replaced elite warrior castes. War became a logistical problem as much as a martial one: you needed to supply powder, shot, and food to thousands of men.
The Global Spread and Its Consequences
When European powers began their global expansion in the late 15th century, they carried gunpowder weapons with them. This technology gap was a significant factor in conquest. Hernando Cortes and a small Spanish force defeated the Aztec empire not through numbers (they were vastly outnumbered) but through a combination of alliances, disease, and the psychological and tactical impact of firearms and cannon.
The story is similar in Africa, South Asia, and the Pacific. Gunpowder weapons did not determine these conquests alone, but they provided advantages that shaped the outcomes. The global dominance of European powers in the 16th through 19th centuries rested partly on military technology that originated in a Chinese alchemist's workshop.
The irony does not end there. As European powers spread gunpowder technology through trade and conquest, they also spread it to populations who would eventually use it against them. The spread of firearms to colonized peoples was a persistent fear among colonial administrators, and for good reason: it was one of the factors that eventually made colonial control untenable.
From Black Powder to Smokeless: The Next Revolution
Black powder had serious limitations. It produced huge clouds of smoke that blinded soldiers and revealed their positions. It was moisture-sensitive. It left heavy residue in gun barrels. In the 19th century, chemists began developing alternatives.
Guncotton, produced by treating cellulose with nitric acid, was discovered in 1846. It was far more powerful than black powder but dangerously unstable. Alfred Nobel's work with nitroglycerin and dynamite in the 1860s produced controllable high explosives that transformed mining and construction. By the 1880s and 1890s, stable smokeless powders based on nitrocellulose were adopted by major militaries. The first world war was fought with these new propellants.
Modern firearms and explosives have little in common chemically with the original Chinese black powder. But the conceptual line runs straight from that Tang dynasty accident through 1,200 years of refinement to every firearm, artillery piece, and explosive device in the world today.
The Accident's Legacy
Gunpowder is one of those technologies whose consequences were so vast and so unpredictable that no one who discovered it could have imagined them. An alchemical experiment aimed at immortality produced a chemical capable of ending lives at a distance. It broke the military logic that had structured medieval society, accelerated the formation of modern states, enabled global European expansion, and set off a chain of development that leads to modern weapons.
It also gave us fireworks, which is where it started, and which remain one of the few purely joyful applications of explosive chemistry. The Chinese alchemists who first watched that flash of light and heard that sharp crack would probably prefer to be remembered for that.
Books You Might Like

Sapiens: A Brief History of Humankind
Yuval Noah Harari

The Body Keeps the Score
M.D. Bessel van der Kolk

The Last Kingdom (The Saxon Stories, Book 1)
Bernard Cornwell

Meditations
Marcus Aurelius