The steam engine revolutionized industry by harnessing the power of high-pressure steam. At its core, a steam engine works by converting thermal energy into mechanical energy. When heated, water converts into steam, which expands in volume and exerts pressure. This pressure is utilized to drive a piston within a cylinder, generating linear motion.