This paper presents the design of optimal fuzzy logic controller (FLC-ACO) ? controlled shunt active power filter (SAPF) for harmonics compensation which is injected by nonlinear loads, such as rectifier equipment used in telecommunication system, power suppliers, domestic appliances, ect. Firstly, the controller designed according to Fuzzy logic rules is such that the system is fundamentally robust. In the second case, the optimal adjustment of the membership functions and normalization gains are realized by using Ant Colony Optimization. Simulations results show the best dynamic behaviour and performance control compared with traditional Fuzzy controller, as well as effective in reducing harmonic