A bayonet (from French "baïonnette") is a knife- or dagger-shaped weapon. It is designed to be attached to a rifle barrel or similar weapon. This will turn the gun into a spear. It is a close-combat or last-resort weapon.