A
capacitance compensation cabinet with an
active power filter (APF) function comprises a cabinet body, the cabinet body is sequentially provided with a cabinet top main
bus chamber, a main switch chamber, a
capacitor reactor installation chamber and an APF module installation compartment from top to bottom, the cabinet top main
bus chamber is internally provided with a lap-joint bar penetrating through other chambers, the main switch chamber is provided with a
circuit breaker, and the APF module installation compartment is provided with an APF module. The
circuit breaker is electrically connected with the
lap joint bar, an
active power filter (APF) module is arranged in the APF module installation compartment and is electrically connected with the
lap joint bar, a plurality of capacitors and reactors are arranged in the
capacitor reactor installation chamber, a
branch busbar is arranged at the output end of the
circuit breaker and is connected with a plurality of fuses, and the
branch busbar is electrically connected with the fuse. Each fuse is connected with a corresponding combination switch, and each combination switch corresponds to a group of reactors and capacitors.