Thomas Savery, an English inventor, developed the first practical steam engine in 1698, specifically for the purpose of pumping water out of coal mines.