The first passenger-carrying public railway was opened by the Swansea and Mumbles Railway at Oystermouth in 1807, using horse-drawn carriages on an existing tramline. In 1802, Richard Trevithick designed and built the first (unnamed) steam locomotive to run on smooth rails.