In America during the 19th century, the invention of the steam engine dramatically improved shipping by water and created a new transportation industry—the railroad. By the end of the century, some steam locomotives began to be powered by electricity.