Salamanca was the first commercially successful steam locomotive, built in 1812 by Matthew Murray of Holbeck, for the edge railed Middleton Railway between Middleton and Leeds. It was the first to have two cylinders. It was named after the Duke of Wellington's victory at the battle of Salamanca which was fought that same year.
Salamanca was also the first rack and pinion locomotive, using John Blenkinsop's patented design for rack propulsion. A single rack ran outside the narrow gauge tracks and was engaged by a large cog wheel on the left side of the locomotive. The cog wheel was driven by twin cylinders embedded into the top of the centre-flue boiler. The class was described as having two 8"×20" cylinders, driving the wheels through cranks. The piston crossheads slid in guides, rather than being controlled by a parallel motion linkage like the majority of early locomotives. The engines saw up to twenty years of service.
It appears in a watercolour by George Walker (1781–1856), the first painting of a steam locomotive. Four such locomotives were built for the railway. Salamanca was destroyed six years later, when its boiler exploded. According to George Stephenson, giving evidence to a committee of Parliament, the driver had tampered with the boiler safety valve.
Salamanca is probably the locomotive referred to in the September 1814 edition of Annals of Philosophy: "Some time ago a steam-engine was mounted upon wheels at Leeds, and made to move along a rail road by means of a rack wheel, dragging after it a number of waggons loaded with coals." The item continues to mention a rack locomotive about a mile north of Newcastle (Blücher at Killingworth) and one without a rack wheel (probably Puffing Billy at Wylam).
- Hamilton Ellis (1968). The Pictorial Encyclopedia of Railways. The Hamlyn Publishing Group. p. 20.
- "Curiosities of Locomotive Design". Catskill. Retrieved 22 March 2008.
- McCann, Mick (2010). How Leeds Changed the World: Encyclopaedia Leeds. Leeds: Armey Press. p. 227. ISBN 0-9554699-3-7.
- Nabarro, Gerald (1972). Steam Nostalgia: Locomotive and Railway Preservation in Great Britain. London: Routledge and Kegan Paul. p. 139. ISBN 0-7100-7391-7.
- Thomson, Thomas, ed. (1814), Annals of Philosophy, IV, Robert Baldwin, p. 232, retrieved 16 December 2014