The Mamluk hand cannon, the midfa

المدفع اليدوي المملوكي ⁦(المدفع، مِدفع)⁩

A metal tube loaded with gunpowder that discharges a projectile from its muzzle, mounted on a stock and fired through a touch hole — the first personal firearm; an Arabic text of 1320-1350 describes a midfa discharging projectiles from a tube at the end of a stock, the Mamluks certainly used cannon by 1342, and al-Qalqashandi described a metal cannon firing an iron ball between 1365 and 1376 1 2.

Depth

At a glance

Era
The Crusades, Ayyubids and Mamluks · The Mongol and Post-Mongol Era
Region
Levant & Iraq · Egypt & Nile · al-Andalus & Europe

Engineering and technology

Quick facts

Domain
Military technology
Kind
Device
First attested
1342 CE · 743 AH (derived)
Era
Middle period
Where
Cairo
Described in
Al-Rammah's Book of Horsemanship and Stratagems of War · Subh al-A'sha fi Kitabat al-Insha
Attribution
Contested

Who made it

The claim and its basis

The hand cannon appears in Mamluk texts and drawings between 1320 and 1352, with certain use by 1342; but the date of its entry into the Mamluk army and its source — a transmitted Mongol technology or local development from the fire lance — is contested between the early-use reading and Khan's late dating {cite:wikipedia-hand-cannon-en} {cite:needham-gunpowder-epic-1986}.

The illustrated midfa witness in the Rzevuski manuscript of c. 1320-1350; Hammer's certain Mamluk cannon use by 1342; al-Qalqashandi's metal cannon firing an iron ball ⁦(1365-1376)⁩; Needham reading midfa as originally a naphtha-projector tube; Khan dating the cannon's arrival in Egypt to the 1370s, while al-Hassan's claimed use at Ain Jalut ⁦(1260)⁩ contradicts other historians.

Sources: Hand cannon — English Wikipedia · Needham, Science and Civilisation in China, the Gunpowder Epic ⁦(1986)⁩ · Ayalon, Gunpowder and Firearms in the Mamluk Kingdom ⁦(1956)⁩ · Partington, A History of Greek Fire and Gunpowder ⁦(1960)⁩

Before it

Built on it

  • Mamluk then Ottoman siege cannon
  • The European arquebus and musket

How it works

Record relationship chain

Summary

The midfa — a metal tube loaded with gunpowder, mounted on a stock and fired by hand through a touch hole — is the first personal firearm in the Islamic textual record: described and drawn in Mamluk manuscripts of 1320-1352, certainly used by 1342, and documented as a metal cannon firing an iron ball by al-Qalqashandi between 1365 and 1376 1 2.

What it is

The simplest metal-barrel firearm: pour powder down the bore, seat a projectile, touch fire to the vent — the tube recoils against its wooden stock and the ball flies. No lock, no trigger: the soldier is the firing mechanism 1.

The world before it

Before it, gunpowder in the Mamluk world was a pyrotechnic's art: al-Rammah's furusiyya treatise of around 1280 gives purified saltpetre, fire lances and incendiary compositions — flames on a battlefield, not bullets 3.

The story

A generation after al-Rammah, illustrated Mamluk military manuscripts of c. 1320-1350 show the midfa discharging projectiles from a tube on a stock; by 1342 the sultanate's cannon use is certain, and between 1365 and 1376 al-Qalqashandi describes a metal cannon firing an iron ball — the documentary chain of the weapon entering the army 1.

The maker(s)

No single maker: the weapon grew inside the Mamluk military-treatise tradition that al-Rammah's generation codified, and its clearest named witness is the chancery scholar al-Qalqashandi, who wrote down what the arsenals fielded 1 3.

How it works

A closed-end tube is fixed to a pole or wooden stock; gunpowder and a projectile are rammed down the bore; a fuse or ember touches the powder through a small vent; the charge burns to gas, the gas expels the shot — the fire lance's fire made into artillery the soldier can carry 1.

The spread

From Mamluk Syria and Egypt the weapon appears across the Mediterranean in the same decades: Nasrid troops besieging Elche in 1331 shot iron pellets with fire, Moors used cannon at Algeciras in 1343 — roughly the century Chinese hand cannon had fought at Nayan's rebellion in 1288 1.

What it was built on

The Chinese fire lance — the gunpowder tube on a polearm documented in the Islamic world from al-Rammah's treatise — plus the saltpetre chemistry his book records; where the metal tube itself came from, Mongol transmission or local development, is the contested point 1 2.

What was built on it

The siege cannon that battered Constantinople in 1453 are its big descendants; the matchlock arquebus that added a trigger in fifteenth-century Europe is its small one 1.

Impact on daily life

For the common soldier it changed the meaning of armament: courage and horsemanship met a weapon any recruit could learn in days — one reason Ayalon and Khan record the Mamluk establishment's coolness toward infantry firearms 1 4.

How it changed history

It closed the pyrotechnic era and opened the gunpowder age in the Islamic world; within a hundred years of the midfa's first texts, cannon decided the fate of Constantinople 1.

Who invented it?

Contested. Ahmad Y. al-Hassan read fourteenth-century manuscripts as recording hand cannon at Ain Jalut in 1260 — other historians place the first certain Mamluk use in the 1340s and Khan dates the metal cannon's arrival to the 1370s by Mongol transmission 1 2.

Today

Museum collections hold the midfa's descendants; the debate over its arrival is a live one in the historiography of gunpowder — the record keeps both dates honestly 1.

Surviving examples

No excavated Mamluk midfa; the survivors are the illustrated Rzevuski manuscript figures of c. 1320-1350 showing the stocked tube among fire tubes and naphtha flasks, and the textual witnesses through al-Qalqashandi 1 2.

In culture

In the furusiyya literature the firearm joined a warrior's written culture of horsemanship, archery and engines — a new page in an old book 3.

For young readers

Imagine an iron tube on a stick: fill it with powder, push in a ball, touch a flame to a small hole — and the ball flies out with a bang. That simple shape is where the personal firearm begins in the books of fourteenth-century Mamluk soldiers.

References

English Wikipedia "Hand cannon" revision 1384930745 (entity facts); J. Needham, Science and Civilisation in China vol. 5 pt 7 (1986), bibliographic via that revision; D. Ayalon, Gunpowder and Firearms in the Mamluk Kingdom (1956), bibliographic-only; J. R. Partington, A History of Greek Fire and Gunpowder (1960), already in the museum.

Connections

Explore the connections

Described by
Al-Hasan al-Rammah Najm al-Din al-Ahdab· al-Qalqashandi· Al-Rammah's Book of Horsemanship and Stratagems of War· Subh al-A'sha fi Kitabat al-Insha
Built on
Al-Hasan al-Rammah's documented gunpowder formulations ⁦(c. 680/1280)⁩

People and things also explored

Al-Hasan al-Rammah's documented gunpowder formulations ⁦(c. 680/1280)⁩· al-Qalqashandi· Al-Hasan al-Rammah Najm al-Din al-Ahdab· Al-Rammah's Book of Horsemanship and Stratagems of War· Subh al-A'sha fi Kitabat al-Insha· Diwan al-Barid (the postal diwan)· Mamluk beacons and crop-burnings (al-manawir wa-l-muhriqat)· The pigeon post

Sources

  1. Hand cannon — English Wikipedia
  2. Needham, Science and Civilisation in China, the Gunpowder Epic ⁦(1986)⁩
  3. Partington, A History of Greek Fire and Gunpowder ⁦(1960)⁩
  4. Ayalon, Gunpowder and Firearms in the Mamluk Kingdom ⁦(1956)⁩
Cite this page

islam.museum contributors. “The Mamluk hand cannon, the midfa”. islam.museum, https://islam.museum/en/invention/mamluk-hand-cannon/. CC BY-SA 4.0. Last updated 2026-11-16.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

Objects

Manuscripts, art, architecture and relics from collections worldwide.
Related

Al-Hasan al-Rammah's documented gunpowder formulations ⁦(c. 680/1280)⁩

Al-Hasan al-Rammah's Kitab al-Furusiyya wa'l-manasib al-harbiyya ⁦(d. 1294-95)⁩ contains the first clear account known to Partington of purifying saltpetre with wood ashes and crystallisation, and some seventy-one pyrotechnic compositions dominated by saltpetre, with rockets, coloured fires and smokes — and no mention of propellant use or of any firearm.