The document presents a strategy for controlling a PWM rectifier using Direct Power Control (DPC) to ensure sinusoidal current absorption and reduce total harmonic distortion. The DPC technique effectively manages active and reactive power, achieving a unity power factor and demonstrating robustness under variable DC bus conditions. Simulation results confirm the performance of the proposed control method, maintaining power quality and low harmonic distortion despite disturbances.