The matchlock was the first mechanism invented to facilitate the firing of a hand-held firearm. Before this, firearms (like the hand cannon) had to be fired by applying a lit match (or equivalent) to the priming powder in the flash pan by hand; this had to be done carefully, taking most of the soldier's concentration at the moment of firing, or in some cases required a second soldier to fire the weapon while the first held the weapon steady. Adding a matchlock made the firing action simple and reliable by a single soldier, allowing them to keep both hands steadying the gun and eyes on the target while firing.
The classic matchlock gun held a burning slow match in a clamp at the end of a small curved lever known as the serpentine. Upon the pull 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 traveled 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 later addition to the gun was the rifled barrel. This made the gun much more accurate at longer distances but did have drawbacks, the main one being that it took much longer to reload because the bullet had to be pounded down into the barrel.
A type of matchlock was developed called the snap matchlock, in which the serpentine was held in firing position by a weak spring, and released by pressing a button, pulling a trigger, or even 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. The match was steeped in potassium nitrate to keep the match lit for extended periods of time. 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 giveaway 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.
The earliest form of matchlock in Europe appeared by 1411 and in the Ottoman Empire by 1425. This early arquebus was a hand cannon with a serpentine lever to hold matches. However this early arquebus did not have the matchlock mechanism traditionally associated with the weapon. The exact dating of the matchlock addition is disputed. The first references to the use of what may have been matchlock arquebuses (tüfek) by the Janissary corps of the Ottoman army date them from 1394 to 1465. However it's unclear whether these were arquebuses or small cannons as late as 1444, but according to Gábor Ágoston the fact that they were listed separate from cannons in mid-15th century inventories suggest they were handheld firearms, though he admits this is disputable. Godfrey Goodwin dates the first use of the matchlock arquebus by the Janissaries to no earlier than 1465. The idea of a serpentine later appeared in an Austrian manuscript dated to the mid-15th century. The first dated illustration of a matchlock mechanism dates to 1475, and by the 16th century they were universally used. During this time the latest tactic in using the matchlock was to line up and send off a volley of musket balls at the enemy. This volley would be much more effective than single soldiers trying to hit individual targets.
Robert Elgood theorizes the Italian army used the arquebus in the 15th century, but this may be a type of hand cannon, not matchlocks with trigger mechanism. He agreed that the matchlock first appeared in Western Europe during the 1470s in Germany. Improved versions of the Ottoman arquebus were transported to India by Babur in 1526.
A primitive long gun called Java arquebus was used by Majapahit Empire and the neighboring kingdoms in the last quarter of 15th century. The weapon was very long, may have reached 2.2 m in length, and had its own folding bipod.
The matchlock was claimed to have been introduced to China by the Portuguese. The Chinese obtained the matchlock arquebus technology from the Portuguese in the 16th century and matchlock firearms were used by the Chinese into the 19th century. The Chinese used the term "bird-gun" to refer to muskets and Turkish muskets may have reached China before Portuguese ones.
In Japan, the first documented introduction of the matchlock, which became known as the tanegashima, was through the Portuguese in 1543. The tanegashima seems to have been based on snap matchlocks that were produced in Portuguese Malacca, at the armory of Malacca (a colony of Portugal since 1511), called an istinggar. While the Japanese were technically able to produce tempered steel (e.g. sword blades), they preferred to use work-hardened brass springs in their matchlocks. The name tanegashima came from the island where a Chinese junk with Portuguese adventurers on board was driven to anchor by a storm. The lord of the Japanese island Tanegashima Tokitaka (1528-1579) purchased two matchlock rifles from the Portuguese and put a swordsmith to work copying the matchlock barrel and firing mechanism. Within a few years, the use of the tanegashima in battle forever changed the way war was fought in Japan.
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.
In Japan, matchlocks continued to see military use up to the mid-19th century. In China, matchlock guns were still being used by imperial army soldiers in the middle decades of the 19th century.
There is evidence that matchlock rifles may have been in use among some peoples in Christian Abyssinia in the late Middle Ages. Although modern rifles were imported into Ethiopia during the 19th century, contemporary British historians noted that, along with slingshots, matchlock rifle weapons were used by the elderly for self-defense and by the militaries of the Ras.
Under Qing rule, the Hakka on Taiwan owned matchlock muskets. Han people traded and sold matchlock muskets to the Taiwanese aborigines. During the Sino-French War, the Hakka and Aboriginals used their matchlock muskets against the French in the Keelung Campaign and Battle of Tamsui. The Hakka used their matchlock muskets to resist the Japanese invasion of Taiwan (1895) and Han Taiwanese and Aboriginals conducted an insurgency against Japanese rule.
Tibetans have used matchlocks from as early as the sixteenth century until very recently. The early 20th century explorer Sven Hedin also encountered Tibetan tribesmen on horseback armed with matchlock rifles along the Tibetan border with Xinjiang. Tibetan nomad fighters used arquebuses for warfare during the Chinese invasion of Tibet as late as the second half of the 20th century--and Tibetan nomads reportedly still use matchlock rifles to hunt wolves and other predatory animals. These matchlock arquebuses typically feature a long, sharpened retractable forked stand.
Initially the Janissaries were equipped with bows, crossbows, and javelins. In the first half of the 15th century, they began to use matchlock arquebuses, although the first references to the Ottomans' use of tüfek or hand firearms of the arquebus type (1394, 1402, 1421, 1430, 1440, 1442) are disputable.