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.