Boarding weapons in the Age of Sail consisted of grenades, pistols, blunderbusses, muskets, bayonets, cutlasses, naval boarding axes, and naval boarding pikes, etc. Until the introduction of the percussion cap in the early 19th century, sailors preferred to use flintlocks whenever possible, as the lighted match of a matchlock was extremely dangerous to use on board a ship. Spanish and Portuguese sailors, especially officers, were known to use the rapier throughout the 17th and even into the 18th century, but the close-quarter nature of boarding combat rendered these lengthy swords very ineffective. An important multipurpose weapon was the boarding axe, useful for attacking the enemy, but also essential for chopping down doors and bulkheads to break into closed quarters where defenders of a ship could barricade themselves. The heavy blade could also cut grappling lines.