The first guns were invented in China during the 10th century, when military engineers attached gunpowder-filled tubes to spears and used them to shoot flames and shrapnel at enemies. These “fire lances” were crude by any modern standard, but they were the first weapons to use an explosive charge to propel something out of a barrel. From that starting point, it took roughly 300 years for recognizable handheld firearms to appear, and another 500 for guns to reach the rapid-fire designs we know today.
Gunpowder Came First
Guns couldn’t exist without gunpowder, and gunpowder wasn’t originally meant for weapons at all. Chinese alchemists stumbled on the formula while experimenting with sulfur, charcoal, and saltpeter, likely searching for an elixir of immortality. By the Song dynasty in the 10th and 11th centuries, knowledge of the substance had spread from alchemists to military engineers, who quickly saw its potential.
The earliest military uses were incendiary. Small packages of gunpowder wrapped in paper or bamboo were strapped to arrows and lit with a fuse. Bombs made of gunpowder mixed with scrap iron were launched by catapult. A Chinese military manual from 1044 CE, the Wujing Zongyao, records the first true gunpowder formula and describes how to produce it at scale. That document marks the moment gunpowder shifted from alchemical curiosity to industrial war material.
Fire Lances: The First Firearms
The fire lance was a bamboo or metal tube mounted on the end of a spear. Soldiers packed it with gunpowder and ignited it, sending a jet of flame and bits of shrapnel toward the enemy. It was part flamethrower, part shotgun, and entirely terrifying at close range. These weapons appeared during the Song dynasty, and while they weren’t accurate or long-ranged, they represent the birth of firearms: the first time a tube and an explosive charge were combined to project something at a target.
Song military engineers kept iterating. Fire lances led to early rockets, bombs, and primitive cannons, all developed during decades of warfare against northern rivals. The core insight, that a sealed tube could direct the force of an explosion outward, proved remarkably fertile.
The First True Handgun
The oldest confirmed surviving firearm in the world is the Heilongjiang hand cannon, a bronze weapon manufactured no later than 1288 in China. It’s small enough to hold: 34 centimeters (about 13 inches) long, weighing 3.55 kilograms (just under 8 pounds). The barrel stretches about 17.5 centimeters, with a bore just over an inch wide and a powder chamber roughly 2.6 inches in diameter.
This wasn’t a tube lashed to a spear. It was a cast bronze barrel with a dedicated chamber for gunpowder, designed to fire a projectile. The leap from bamboo fire lance to metal hand cannon took roughly two to three centuries, but the result was a weapon that could punch through armor and didn’t burn up after a few uses. Variations of these hand cannons spread across Asia and eventually along trade routes toward the Middle East and Europe.
Guns Arrive in Europe
Firearms reached Europe in the early 14th century and spread with startling speed. Their use is first documented in France in 1324, in Florence in 1326, in England in 1327, and by German troops in Italy and Moorish forces in Spain by 1331. The earliest known European image of a firearm comes from an English manuscript written for King Edward III in 1326 to 1327 by Walter de Milemete. The illustration shows a vase-shaped cannon being touched off with a heated rod, and as one historian put it, “no verbal description can convey the awkwardness of these first arms more vividly.”
By 1346, English forces brought gunpowder weapons to the Battle of Crécy, one of the defining clashes of the Hundred Years’ War. The army carried small guns firing lead balls, multi-barreled devices shooting metal arrows or grapeshot, and bombards (an early cannon) that launched iron balls roughly 3 to 3.5 inches across. Iron balls matching that ammunition have been recovered from the battlefield. Whether these weapons caused significant casualties is debated, but their psychological impact on soldiers who had never encountered them was considerable.
Where the Word “Gun” Comes From
The origin of the word itself is surprisingly murky. It appears in English from the mid-14th century, but linguists aren’t certain where it came from. In Middle English, “gun” initially referred to siege engines of various types, especially those that hurled missiles. One intriguing lead: a Latin document from before 1331 names a large crossbow-like siege weapon stationed at Windsor Castle “Domina Gunilda,” or Lady Gunnhild, a Scandinavian woman’s name. A similar form shows up around 1350 in a cryptic English poem. The word may have transferred from a nickname for a specific siege engine to firearms in general as gunpowder weapons replaced older technology.
Key Mechanical Breakthroughs
Early guns required a soldier to manually touch a burning wick or heated wire to a small hole in the barrel to ignite the powder inside. This meant one hand held the gun and the other applied the flame, making aiming nearly impossible. The matchlock, invented in the 15th century, was the first mechanical firing device. It used a lever that lowered a lit cord (the “match”) into the powder pan when the shooter pulled a trigger. This freed both hands to hold and aim the weapon. The matchlock was slow and clumsy, useless in rain, and the glowing cord was a liability during nighttime operations or ambushes, but it transformed firearms from battlefield novelties into standard infantry weapons.
Rifling, the practice of cutting spiral grooves inside a barrel to spin the projectile, appeared in Europe by the early 1500s. A Vienna gunsmith named Gaspard Kollner experimented with spiral grooves as early as 1498, and Augustus Kotter of Nuremberg followed in 1520. Straight grooves had been cut into barrels since at least 1480, originally just to collect gunpowder residue and make cleaning easier. The spin from true rifling dramatically improved both range and accuracy, but because the grooves had to be engraved by hand, rifled barrels remained rare and expensive until mass production caught up in the mid-19th century.
Solving the Weather Problem
For centuries, rain could render an entire army’s firearms useless. Flintlock and matchlock systems both relied on exposed powder that moisture could ruin. In 1807, a Scottish minister named Alexander Forsyth patented a new ignition system that changed everything. His design sealed the firing vent against water and air, replacing loose powder and flint with a chemical fulminate that ignited on impact. Forsyth claimed the system was “completely impervious to water, or damp of any kind,” and could even fire underwater. This percussion system became the foundation for the percussion cap, which in turn made possible the self-contained cartridge: a single unit combining bullet, powder, and primer. That cartridge is the direct ancestor of modern ammunition.
From China to the Modern Era
The full arc stretches roughly a thousand years. Fire lances in 10th-century China gave way to bronze hand cannons by the late 1200s. Firearms crossed into Europe in the 1320s and saw their first major battlefield use by the 1340s. The matchlock made handheld guns practical in the 1400s. Rifling improved accuracy in the 1500s. Percussion ignition in 1807 eliminated the vulnerability to weather. Each step solved a specific limitation of the previous design: durability, aimability, accuracy, reliability.
The pace of change accelerated sharply in the 19th century, with breech-loading mechanisms, repeating rifles, and eventually fully automatic weapons arriving in rapid succession. But the fundamental concept, a tube that uses an explosive charge to send a projectile toward a target, has remained unchanged since a Chinese soldier first packed gunpowder into a bamboo tube and pointed it at an enemy more than a millennium ago.

