IEEE INTERNET OF THINGS JOURNAL. 1 UAV Communications for 5G and Beyond: Recent Advances and Future Trends Bin Li, Zesong Fei, Senior Member, IEEE, and Yan Zhang, Senior Member, IEEE Abstract—Providing ubiquitous connectivity to diverse device types is the key challenge for 5G and beyond 5G (B5G). Unmanned aerial vehicles (UAVs) are expected to be an important component of the upcoming wireless networks that can potential- ly facilitate wireless broadcast and support high rate transmis- sions. Compared to the communications with fixed infrastructure, UAV has salient attributes, such as flexible deployment, strong line-of-sight (LoS) connection links, and additional design de- grees of freedom with the controlled mobility. In this paper, a comprehensive survey on UAV communication towards 5G/B5G wireless networks is presented. We first briefly introduce essential background and the space-air-ground integrated networks, as well as discuss related research challenges faced