An integral plus resonant sliding mode direct power control (IRSMC DPC) strategy for voltage source converter high voltage direct current (VSC-HVDC) systems under unbalanced grid voltage conditions is proposed in this paper. Through detailed instantaneous power flow analysis, a generalized power compensation method, by which the ratio between the amplitude of active and reactive power ripples can be controlled continuously, is obtained. This enables the system to provide flexible power control, so that the desired performance of the system on both the ac and dc sides can be attained under different operating conditions. When the grid voltage is unbalanced, one or both of the active and reactive power terms contain ripples, oscillating at twice the grid frequency, to obtain non-distorted ac current. A power controller consisting of the proportional, integral and resonant control laws is designed using the sliding mode control approach, to achieve accurate power control objective. Simulation studies on a two-terminal VSC-HVDC system using MATLAB/SIMULINK (R2013b, Mathworks, Natick, MA, USA) are conducted to verify the effectiveness of the IRSMC DPC strategy. The results show that this strategy ensures satisfactory performance of the system over a wide range of operating conditions.