The act of taking water from a mine that is being operated has been done since Neolithic times, when the Man was gathering rocks for usage.
The machina pyraulica, invented by Thomas Newcomen, is considered the first water-independent dewatering machine - in the year 1712.