The invention of the steam engine is usually ascribed to British engineers of the 17th and 18th centuries. James Watt (d. 1819) is best known for inventing an especially efficient type of the engine in 1786, which was applied first to trains and then in the early 19th century to ships.