In order to settle the problem of UAV path planning under mountain, an algorithm which based on the combination of ant colony algorithm and beetle antennae algorithm is proposed. Three dimensional environment model is established and objective function is constructed. It used ant colony algorithm to initialize the search path and the particle coordinates of all the next steps are updated by the beetle antennae algorithm. The improved algorithm adopted a new step update rule to speed up the convergence of the algorithm and used third-order B-spline interpolation method to smooth the path. Simulation results show that improved fusion algorithm has faster convergence speed and high stability by comparing with other algorithms under the same conditions, which verifies its effectiveness.