In order to solve the reactive power optimization problem of distribution network with distributed generators, this paper proposes an improved driving training-based optimization algorithm. Firstly, the reactive power optimization model is established with the reactive power output of distributed generators and static reactive power compensator as the control variables, and the minimum active power network loss, reactive power compensation cost and voltage overlimit deviation as the optimization objectives. Then the basic driving training-based optimization algorithm is improved by introducing good point set, golden sine algorithm, Gaussian variation and chaos disturbance. Finally, the enhanced IEEE33 bus system is taken as an example to verify and analyze the proposed reactive power optimization model and improved algorithm. The experimental results show that the proposed algorithm is effective in solving the reactive power optimization problem of distribution network with distributed generators.