To solve the problem of intercepting a moving target by a multirotor unmanned aerial vehicle (UAV) swarm, an optimal guidance strategy is proposed. The proposed guidance law is based on the integration of the classic pure pursuit guidance law and Kuhn-Munkres (KM) optimal matching algorithm, and virtual force potential functions are used to avoid collision. The proposed optimal guidance strategy is demonstrated by simulation experiments. The simulation results indicate that with the proposed optimal guidance strategy, a UAV swarm can intercept a moving target while maintaining the predetermined formation, and during the formation flight, the collisions between UAVs or the target can be avoided. Through a comparative experiment, the proposed optimal matching algorithm is proven to significantly reduce the average per-sampling-period total flight distance of all the UAVs and accelerate the interception process, and the formation completion degree is improved. INDEX TERMS Optimal matching; Unmanned aerial vehicles; Pursuit algorithms; Three-dimensional guidance law; Target interception; Collision avoidance. Xi WANG received his B.E. degree in electrical engineering in 2011 and MA.Eng. degree in control science and engineering in 2014, from Hunan University of Science and Technology. He is currently a doctoral student in the School of Automation, Central South University, China. His research areas are unmanned aerial vehicles, swarm intelligence, and related applications.