The document presents a study on an Adaptive Neuro-Fuzzy Inference System (ANFIS) based Unified Power Quality Conditioner (UPQC) aimed at improving power quality in three-phase systems with non-linear loads. The UPQC integrates shunt and series active power filters to manage voltage and current distortions, and the ANFIS enhances system performance by optimizing the control of DC link capacitance. Simulation results indicate that the ANFIS-based controller outperforms traditional methods in addressing power quality issues.