Control DC Motor with Micrcontroller
If it's a switch that you don't need to flip frequently, the simplest way to control the power to your pump is by using a relay.

The microcontroller will drive the on/off state of the relay, and the relay will serve as an on/off switch between your 12V battery and the pump.