Power quality (PQ) is a major issue in today’s electrical system that affects both utilities and customers. The proliferation of power electronics devices, smart grid technology, and renewable energy sources (RES) have all contributed to the emergence of PQ concerns in today’s power system. The Unified Power Quality Conditioner (UPQC) is a versatile tool that can be used to fix distribution grid issues caused by irregular voltage, current, or frequency. Several tuning parameters, however, restrict the effectiveness of the Fractional-Order Proportional Integral Derivative (FOPID) control technique, which is proposed to improve UPQC performance. To move beyond these restrictions and find the optimal solution for the FOPID controller problem, a hybrid optimization strategy called the Hybrid Jellyfish Search Optimizer and Particle Swarm Optimizer (HJSPSO) is employed. To meet the load requirement during PQ issue periods, the suggested model incorporates a renewable energy source into the grid system. Whether the load is linear or non-linear, the design maintains PQ problems to a minimum. Furthermore, the FOPID control technique is compared with other controllers. Results show that grid-connected RES systems using the proposed FOPID control approach for UPQC have fewer PQ problems. The presented UPQC with HJSPSO strategy significantly outperformed, with the shortest computing time of 127.474 s and an objective function value of 1.423.