This study proposes a novel method that combines sliding mode control (SMC) and virtual oscillator control (VOC) to eliminate voltage harmonics and unbalance caused by non-linear and unbalanced loads in a three-phase low-voltage microgrid. The conventional VOC is modified to fit the three-phase four-leg inverter systems and a novel SMC control is designed using the high-pass filter technique and linearised super twist algorithm. The proposed control method can keep the voltage harmonics and unbalance at the point of common coupling within the IEEE standard limits, under heavily non-linear and unbalanced load conditions. The validity of the proposed method is verified by both offline simulations in Matlab/Simulink and Control Hardware-in-the Loop simulations using an OPAL-RT platform.