This paper presents a three-phase four-wire Shunt Active Filter that compensates power quality problems and can also interface renewable energy sources with the electric grid. The inverter stage of the active filter is based in a two-level four-leg inverter and its control is based in the Theory of Instantaneous Reactive Power (p-q Theory). The filter is capable of compensating power factor, un...