In 1802, Richard Trevithick designed and built the first (unnamed) steam locomotive to run on smooth rails. The first commercially successful steam locomotive was Salamanca, built in 1812 by John Blenkinsop and Matthew Murray for the 4 ft (1,219 mm) gauge Middleton Railway.