In 1712 Thomas Newcomen built an engine at a coal mine near Dudley that used steam and a piston to pump water out of the workings.
In 1765 James Watt conceived a separate condenser that stopped the cylinder from being cooled and reheated each stroke. Later improvements let steam engines turn wheels as well as pump water.