Industrial revolution and invention of the steam engine marked the beginning of the railway. The first locomotives were steam powered. As the times changed and new technologies became available, new types of locomotives were introduced and locomotives were majorly improved in the way they are powered. Today we classify them by their source of energy and here are some of them: