The document proposes a hybrid power compensator (HPC) designed to address power quality issues in electrified railway traction systems caused by nonlinear loads, including harmonic currents and voltage imbalances. The HPC consists of a back-to-back converter system, which is utilized alongside a control strategy to maintain DC-link voltage and improve the overall power factor. Simulation results demonstrate its effectiveness in compensating power quality problems, significantly reducing harmonic distortion and enhancing system performance.