Multi-robot is a new direction of robotics research and development. Aiming at formation control problem of multi-robot in unknown environment, a multi-robot algorithm based on double-moving beacon is proposed. In this paper, through the formation algorithm design and simulation verification, the realization of multi-robot control, effectively improve the accuracy of multi-robot formation. In the algorithm design, the speed of the comparison vehicle converges to 0.5m/s and minus 0.5m/s, and the speed error converges to zero, with the optimal effect. This method solves the formation control problem of multi-robot in unknown environment. Simulation results show that the proposed method is feasible and effective.