In 1698, the English mechanical designer Thomas Savery invented a pumping appliance that used steam to draw water directly from a well by means of a vacuum created by condensing steam. The appliance was also proposed for draining mines, but it could only draw fluid up approximately 25 feet, meaning it had to be located within this distance of the mine floor being drained. As mines became deeper, this was often impractical. It also consumed a large amount of fuel compared with later engines.
The solution to draining deep mines was found by Thomas Newcomen who developed an "atmospheric" engine that also worked on the vacuum principle. It employed a cylinder containing a movable piston connected by a chain to one end of a rocking beam that worked a mechanical lift pump from its opposite end. At the bottom of each stroke, steam was allowed to enter the cylinder below the piston. As the piston rose within the cylinder, drawn upward by a counterbalance, it drew in steam at atmospheric pressure. At the top of the stroke the steam valve was closed, and cold water was briefly injected into the cylinder as a means of cooling the steam. This water condensed the steam and created a partial vacuum below the piston. The atmospheric pressure outside the engine was then greater than the pressure within the cylinder, thereby pushing the piston into the cylinder. The piston, attached to a chain and in turn attached to one end of the "rocking beam", pulled down the end of the beam, lifting the opposite end of the beam. Hence, the pump deep in the mine attached to opposite end of the beam via ropes and chains was driven. The pump pushed, rather than pulled the column of water upward, hence it could lift water any distance. Once the piston was at the bottom, the cycle repeated.
The Newcomen engine was more powerful than the Savery engine. For the first time water could be raised from a depth of over 300 feet.   The first example from 1712 was able to replace a team of 500 horses that had been used to pump out the mine.  Seventy-five Newcomen pumping engines were installed at mines in Britain, France, Holland, Sweden and Russia. In the next fifty years only a few small changes were made to the engine design. It was a great advancement.
While Newcomen engines brought practical benefits, they were inefficient in terms of the use of energy to power them. The system of alternately sending jets of steam, then cold water into the cylinder meant that the walls of the cylinder were alternately heated, then cooled with each stroke. Each charge of steam introduced would continue condensing until the cylinder approached working temperature once again. So at each stroke part of the potential of the steam was lost.