A bayonet (from French baïonnette) is a knife, dagger, sword, or spike-shaped weapon designed to fit on the end of the muzzle of a rifle, musket or similar firearm, allowing it to be used as a spear-like weapon.