A needle gun is a firearm that has a needle-like firing pin, which can pass through the paper cartridge case to strike a percussion cap at the bullet base. A needle gun with a barrel that has a helical groove or pattern of grooves ("rifling") cut into the barrel walls is also called needle rifle.
The first experimental needle gun was designed by Jean Samuel Pauly, a Swiss gunsmith.
In Paris in 1808, in association with French gunsmith François Prélat, Pauly created the first fully self-contained cartridges: the cartridges incorporated a copper base with integrated mercury fulminate primer powder (the major innovation of Pauly), a round bullet and either brass or paper casing. The cartridge was loaded through the breech and fired with a needle. The needle-activated central-fire breech-loading gun became a major feature of firearms thereafter. The corresponding firearm was also developed by Pauly. Pauly made an improved version which was protected by a patent on 29 September 1812. The cartridge was further improved by the French gunsmith Casimir Lefaucheux in 1836.
In 1809 Pauly employed the German Johann Nicolaus von Dreyse, who later invented the famous Dreyse rifle.
The first mass-produced needle gun was invented by the German gunsmith Johann Nicolaus von Dreyse, who, beginning in 1824, had conducted multiple experiments, and in 1836 produced the first viable breech loading gun model using a complete cartridge .
The early Dreyse needle guns were smooth-bore. Later Dreyse guns adopted by the Prussian army were rifles using self-contained combustible cartridges holding oblong lead balls held in a papier-mache "sabot".
From 1848 onwards the new weapon was gradually introduced into Prussian service. The Dreyse rifle became widely used during the Austro-Prussian War of 1866 when it played a decisive role at the Battle of Königgrätz.