 Four such locomotives were built for the railway, and they worked until the early 1830s.The proprietors of Wylam Colliery, near Newcastle upon Tyne wanted to replace horse-drawn trains with steam.In 1804, William Hedley, a manager at the colliery, employed Trevithick to build a steam locomotive.