A faucet is provided with a diverter. The diverter includes a body, an inlet module, two outlet modules and a control module. The inlet module is connected to the body. The outlet module is connected to the body. The control module is connected to the body. The control module is operable to switch between directions and modes for supply water. Each of the modules includes a small number of components. The diverter can be taken apart for repair because the modules are not interconnected by ultrasonic welding.