The
matchlock was the first mechanism or "lock" invented to facilitate the firing of a hand-held
firearm. This design removed the need to lower by hand a lit match into the weapon's
flash pan and made it possible to have both hands free to keep a firm grip on the weapon at the moment of firing, and, more importantly, to keep both eyes on the target.

Early German musket with serpentine lock
The classic
European matchlock gun held a burning
slow match in a clamp at the end of a small curved lever known as the
serpentine. Upon the pulling of a lever (or in later models a trigger) protruding from the bottom of the gun and connected to the serpentine, the clamp dropped down, lowering the smoldering match into the flash pan and igniting the priming powder. The flash from the primer travelled through the
touch hole igniting the main charge of propellant in the
gun barrel. On release of the lever or trigger, the spring-loaded serpentine would move in reverse to clear the pan. For obvious safety reasons the match would be removed before reloading of the gun. Both ends of the match were usually kept alight in case one end should be accidentally extinguished
Earlier types had only an "S"-shaped serpentine pinned to the stock either behind or in front of the flash pan (the so-called "serpentine lock"), one end of which was manipulated to bring the match into the pan.
Most matchlock mechanisms mounted the serpentine forward of the flash pan. The serpentine dipped backward, toward the firer, to ignite the priming. This is the reverse of the familiar forward-dipping hammer of the flintlock and later firearms.
A variety of matchlock was also developed called the
snapping matchlock, in which the serpentine was strongly spring-loaded, and released by pressing a button, pulling a trigger, or pulling a short string passing into the mechanism. As the match was often extinguished after its relatively violent collision with the flash pan, this type fell out of favour with soldiers, but was often used in fine target weapons.
An inherent weakness of the matchlock was the necessity of keeping the match constantly lit. Being the sole source of ignition for the powder, if the match was not lit when the gun needed to be fired, the mechanism was useless, and the weapon became little more than an expensive club. This was chiefly a problem in wet weather, when damp match cord was difficult to light and to keep burning. Another drawback was the burning match itself. At night, the match would glow in the darkness, possibly revealing the carrier's position. The distinctive smell of burning match-cord was also a give away of a musketeer's position (this was used as a plot device by
Akira Kurosawa in his movie
Seven Samurai). It was also quite dangerous when soldiers were carelessly handling large quantities of gunpowder (for example, while refilling their powder horns) with lit matches present. This was one reason why soldiers in charge of transporting and guarding ammunition were amongst the first to be issued self-igniting guns like the
wheellock and
snaphance.
The matchlock was also uneconomical to keep ready for long periods of time. To maintain a single sentry on night guard duty with a matchlock, keeping both ends of his match lit, required a mile of match per year.
A doghead is a term for a part of a matchlock or flintlock gun or rifle that holds the burning fuse or flint and applies it to the gunpowder.
History
The famous
Janissary corps of the
Ottoman army were using matchlock
muskets as early as the 1440s.
The matchlock appeared in
Europe some time in the mid-1400s, although the idea of the serpentine appears some 40 years previously in an
Austrian manuscript. The first dated illustration of a matchlock mechanism dates to 1475, and by the 1500s they were universally used. The technology was transported to
India by
Babur in 1526 and to
Japan by the
Portuguese in 1543 and flourished there until the 1900s. The Japanese matchlock, or
tanegashima was based on an unknown model of Portuguese snapping matchlock, but was refined so that the difficulties with self-extinguishing matches were almost eliminated. Whilst the Japanese were technically able to produce tempered steel (e.g. sword blades), they preferred to use work-hardened brass spings in their matchlocks.
Despite the appearance of more advanced ignition systems such as that of the wheellock and the snaphance, the low cost of production, simplicity, and high availability of the matchlock kept it in use in European armies until about 1720. It was eventually completely replaced by the
flintlock as the foot soldier's main armament.
Both the
Qing Dynasty and the
Joseon Dynasty used matchlock rifles as late as the 1850s and 1870s, during the
Second Opium War and the
United States expedition to Korea. Improvised matchlock guns were last used by pro-
Indonesia Timor Leste militias in the 1999 conflict.

Japanese pistol belonging to a mounted
samurai