Switching 12v with an arduino
For simplicity and robustness, use a relay.  That's basically a electrically-controlled mechanical switch.

You can get modules that contain relays and that are controlled directly from digital outputs.  You can also make your own circuit to do that.  Driving a relay from a digital signal has been discussed many times here before.  Look around.