How to cotrol fan with Arduino

Second answer, any output pin that will do PWM and is connected to a motor driver circuit.