He first discovered this when watching a pot of water boil. Teh lid of the pot kept rising to let out excess pressure created by the boiling water creating steam. From observing this he created the first steam engines. When the piston was invented Stephenson, invented the first train.