The high penetration of micro-grid (MG) based on renewable distributed generators (DG) in the electrical network has brought about new issues on the stability and the transient operation of the grid. However, the disconnection and the reconnection of these local networks may give rise to undesired transient overcurrents and other damage that have to be avoided. In order to solve this problem, this paper presents a novel synchronization method for a DG grid connection. This synchronization method has been implemented in a grid-connected power converter that acts as an intelligent connection agent and adapts the magnitude, the frequency and the phase angle of the MG voltage at the point of common coupling (PCC) to be equal to those of the main voltage, despite the grid frequency and voltage variations. The system is simulated using MATLAB software and results are discussed in order to prove the performance and the robustness of this synchronization technique.