Miquelet lock is a modern term used by collectors and curators, largely in the English-speaking world, for a type of firing mechanism used in muskets and pistols. It is a distinctive form of snaplock, originally as a flint-against-steel ignition form, once prevalent in Spain, Portugal, Italy, the Balkans, North Africa, the Ottoman Empire and throughout Spain's colonies from the late 16th to the mid 19th centuries.
The term miquelet lock was not recorded until the 19th century, long after the appearance of the mechanism in the 16th century, and is of uncertain origin. One commonly held view is that it was coined by British troops in the Peninsular War to describe the style of musket used by the Miquelet (militia) that had been assigned to the Peninsular Army of the Duke of Wellington. In most of Spain, it was traditionally called the "llave de rastrillo", and in Catalonia and Valencia it was called the "pany de pedrenyal" or simply "pedrenyal".
There is often confusion, or at least a difference of opinion, as to what constitutes a snaplock, snaphaunce, miquelet and a flintlock. The term flintlock was, and still is, often applied to any form of friction (flint) lock other than the wheellock with the various forms sub-categorized as snaphaunce, miquelet, English Doglock, Baltic Lock, and French or "true" flintlock ("true" being the final, widely used form). Strictly speaking, all are flintlocks. However, current usage demands the separation of all other forms of flintlock from the so-called "true flintlock".
After the disastrous campaign of Algiers (1541) where "wind and rain" prevented the firing of arquebuses, Charles I of Spain might have expressed to his gunmakers the urgent need to devise an ignition mechanism less prone to failure in bad weather. Problems were caused on both wheellocks and matchlocks, firstly by wind blowing away the gunpowder when the pan cover was opened during priming, and secondly, by rain wetting matches and gunpowder. In less than three decades, a lock did appear that is known today as the miquelet lock.