With a legacy in combat going back to the Civil War, bayonets were used in close-quarters combat. They were a companion to a rifle, fitting on the barrel via a barrel ring allowing the blade to protrude from the end of the barrel.