Usually,due to physical obstacles such as terrain and buildings,signal attenuation and limited transmission distance may occur during data communication.In order to expand communication coverage,improve communication quality and stability,this article proposes a new application of drones in data communication.By allocating spectrum resources reasonably,waste and conflicts of spectrum resources can be avoided,and unmanned aerial vehicle(UAV)data communication positioning function can be designed to monitor the UAV's position and communication status in real time,thereby improving communication stability.The experimental results show that the communication resource allocation normalization rate and communication data transmission rate of the communication method designed in this paper are high,the probability of communication interruption is low,the communication effect is good and reliable,and it has certain application value.