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.
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 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 matchlock first appeared Europe, in the mid-15th century, (The matchlock was obsolete around 1700 in Europe)  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 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.
China is credited with inventing both gunpowder and firearms but the matchlock was claimed to have been introduced to China by the Portuguese. Europeans refined the hand cannons that had arrived in Europe in the early 15th century and added the matchlock mechanism. 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 tern "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 the armory of Goa in Portuguese India, which was captured by the Portuguese in 1510. 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 sword smith 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.
There is evidence that matchlock rifles may have been in usage 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 the elderly used matchlock rifle weapons for self-defense and by the militaries of the Ras. The first use of the fire arms on the African continent happened during the Ethiopian-Adal War by the Somali Adal Sultanate.
In Taiwan 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.
Tibetan nomad fighters used arquebuses for warfare during the Chinese invasion of Tibet as late as the second half of the 20th century. Tibetan nomads still use matchlock rifles to hunt wolves and other predatory animals. These matchlock arquebuses typically feature a long, sharpened retractable forked stand and are part of Tibetan traditional Nomad regalia. Some of these arquebuses are engraved with silver and gold inlays and/or have damascened barrels. Early 20th century explorer Sven Hedin also encountered Tibetan tribesmen on horseback armed with matchlock rifles along the Tibetan border with Xinjiang.
- Ágoston, Gábor (2005). Guns for the Sultan. Cambridge University Press. p. 88. ISBN 978-0-521-84313-3.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- "Handgonnes and Matchlocks". Retrieved 2008-12-05.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- Weir, William (2005). 50 Weapons That Changed Warfare. Franklin Lakes, NJ: Career Press. pp. 71–74. ISBN 1-56414-756-8.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- The defences of Macau: forts, ships and weapons over 450 yearsAuthor Richard J. Garrett, Publisher Hong Kong University Press, 2010, ISBN 988-8028-49-9, ISBN 978-988-8028-49-8 P.176
- European & American arms, c. 1100-1850, Author Claude Blair, Publisher B. T. Batsford, 1962, Original from Pennsylvania State University, Digitized Jun 30, 2009 P.42
- Dale Taylor (1997), The Writer's Guide to Everyday Life in Colonial America, ISBN 0-89879-772-1, p. 159.
- Saidel, Benjamin (2000). "Matchlocks, Flintlocks, and Saltpetre: The Chronological Implications for the Use of Matchlock Muskets among Ottoman-Period Bedouin in the Southern Levant" (PDF). International Journal of Historical Archaeology. 4 (3): 197. Retrieved 24 September 2013.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- Nicolle, David (1995). The Janissaries. Osprey. pp. 21f. ISBN 1-85532-413-X.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- The defences of Macau: forts, ships and weapons over 450 years, Richard J. Garrett, Hong Kong University Press, 2010 P.4
- Kenneth Warren Chase (7 July 2003). Firearms: A Global History to 1700. Cambridge University Press. pp. 144–. ISBN 978-0-521-82274-9.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- Tanegashima: the arrival of Europe in Japan, Olof G. Lidin, Nordic Institute of Asian Studies, NIAS Press, 2002 P.1-14
- The bewitched gun : the introduction of the firearm in the Far East by the Portuguese, by Rainer Daehnhardt 1994 P.26
- Noel Perrin, (1979). Giving up the gun: Japan's reversion to the sword, 1543-1879. David R Godine. Retrieved 2011-09-22.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
- The Encyclopædia Britannica: a dictionary of arts, sciences ..., Volume 1 edited by Hugh Chisholm. Page 89.
- XV. - Memorandum on Abyssinia Communicated by the Foreign Office. March 12, 1855. Page 215.