bayonet
Melee weapon in the form of a knife, dagger, sword or spike, designed to be mounted on the end of a rifle or musket barrel so the gun could be used as a spear in close combat. It was an infantry weapon from the early 17th to the 20th century; many armed forces now treat it as a weapon of last resort.