In this paper is presented a synchronous reference frame control strategy applied to a single-phase microgrid system connected to a renewable energy power source. The control strategy aims to regulate active power flow and to optimize the power factor at the point of common coupling (PCC). The whole control system is carried out on the synchronous reference frame of the PCC voltage. On this frame the direct current is responsible for active power regulation while the quadrature one regulates power factor. The direct current is used to regulate the dc-link voltage of the single-phase converter, consequently keeping the active power balance on the system. Experimental results are presented to demonstrate the system feasibility and effectiveness.