A steam locomotive is a type of railway engine that is powered by steam generated from boiling water, which drives pistons to create motion. This invention revolutionized transportation during the Industrial Revolution, significantly improving the speed and efficiency of moving goods and people across vast distances.