Thomas Savery has grown up in a mining district of Devon and knows the problem of flooded mines. In 1698 he obtains a patent for an engine to raise water 'by the Impellent Force of Fire'. It turns out to be the world's first practical steam engine. Designed purely as a pump, it has no piston but relies on the power of a vacuum.
A metal cylinder is filled with steam from a boiler. Cold water is poured over the outside, condensing the steam within and creating a vacuum which sucks water up through a pipe at the base. When the cylinder is full of water, the valve from below is closed. Steam is again introduced, forcing the water out of the cylinder through another valve. With the cylinder again full of steam, the process is repeated.
In 1702 Savery publishes a book about his invention, entitled The Miner's Friend. In it he describes how the idea came to him. One evening, after finishing his wine, he threw the empty bottle into the fire and prepared to wash his hands in a basin of water. Noticing steam coming out of the neck of the bottle, he plucked it from the fire and stuck it neck down in the basin. As the bottle cooled, it sucked up the water.