The invention provides an allocation algorithm of joint beam and power for 5G unmanned aerial vehicle communication, and belongs to the field of communication. The method comprises the following steps: firstly, constructing unmanned aerial vehicle communication architecture, sending, by a millimeter wave base station, a communication signal, calculating an SINR of each miniature unmanned aerial vehicle in an unmanned aerial vehicle group based on adaptive beam forming, and separately calculating the respective allocated link capacity; then, in combination with the link capacity of each miniature unmanned aerial vehicle, constructing constraint conditions and an objective function to maximize the system capacity of the communication architecture; and finally solving the objective function,and performing beam and beam power resource allocation on the miniature unmanned aerial vehicle group within a millimeter wave band. By adoption of the allocation algorithm provided by the invention,the number of iterations is reduced, the fast beam and power joint allocation is achieved, the fairness of the unmanned aerial vehicles is ensured, and the system capacity is also improved.