Then, in the 1800s, trains changed everything. Matthew Murray, an English inventor, is created the first moving steam locomotive in 1804. Then, a few years later, he invented the twin-cylinder, Salamanca locomotive, which was used publicly in 1812 as the first commercial passenger railway opened in England.