This paper proposes a method to integrate distributed generation (DG) from renewable energy sources into a distribution network to maximize the amount of DG power injected while maintaining bus voltages within limits. The method uses optimal power flow analysis and a static synchronous compensator (STATCOM) for voltage control. Simulation results on an IEEE 13-bus test system show the DG installation increases bus voltages closer to nominal levels compared to without DG integration. The STATCOM effectively regulates voltages during different loading conditions, allowing more DG power to be utilized while keeping voltages within specification limits.