ABSTRACTIn this article, we aim to design a general framework for the pursuit‐evasion (PE) game of multiple UAVs. Based on the distance between the pursuers and the evader, the whole pursuit‐evasion process is decoupled into a seeking stage and a herding stage. A formation control method is proposed to make sure that the pursuers can find and drive the noncooperative evaders along a desired trajectory towards the designated target while maintaining a preset formation. In the meantime, an adaptive potential function is designed to achieve collision avoidance to both obstacles and other agents in the formation. The main contribution is that it combines formation control and collision avoidance in the problem of indirect herding, which is rarely addressed before. Also, the convergence and effectiveness of the designed controller for trajectory tracking and formation maintenance are proven and verified in the article. Simulation results in two and three dimensional space show that the proposed framework achieves the goal of coordinated herding and collision avoidance in a pursuit‐evasion scenario under uncertainties and external disturbances.