The reconfigurable intelligent surface (RIS) technology has gained increased attention for improving the performance and efficiency of the fifth-generation (5G) millimeter-wave (mmWave) wireless communication by obviating the propagation and blockage issues. On the other hand, the great flexibility of unmanned aerial vehicles (UAVs) has made them effective gadgets to enhance the coverage of wireless communication networks. Combining these two emerging technologies, the RIS-outfitted UAV (RISoUAV) is a promising solution for providing line-of-sight (LoS) wireless links for mobile targets (MTs) in obstructed high-dense urban areas. In this light, high-speed real-time communication is essential for some vital municipal services like ambulances, fire engines, security guards, police, etc. This important goal is achievable thanks to the RISoUAV-assisted 5G/quasi-optic wireless communication. This paper develops a framework for optimal navigation of a team of RISoUAVs for maintaining LoS links with a team of ground vehicles in a dense urban area. The trajectories of the RISoUAVs are optimized considering the energy efficiency, communication channel gains, and constraints associated with RISoUAVs motion and LoS service. A consensus-based coordinating approach is adopted to coordinate the RISoUAVs navigation to cover all MTs under a good quality of service. Simulation results show the effectiveness of the method. Note to Practitioners—In this paper, we consider a scenario where vehicles need to have high-speed, uninterrupted data links in obstructed, highly dense urban environments. Due to spectrum crunch, the data links are increasingly likely to rely on a high-frequency spectrum, including mmWave with quasi-optic nature, visible light communications, or even laser. However, the obstructed LoS and propagation are critical issues with the 5G and beyond as they rely on the availability of an unobstructed path (e.g., the LoS or a quality reflective path). On the other hand, the RIS performs as a passive reflective element that provides an indirect LoS link, a one-bounce channel, to improve the performance and efficiency of mmWave, and beyond, wireless communication networks. UAVs equipped with RISs are suggested in this paper to be adopted as aerial transponders to reflect signals and facilitate communication in high-density environments. Therefore, the problem of UAV navigation and 3D trajectory planning should be addressed regarding the application, particularly, for providing LoS service for mobile vehicles with arbitrary directions. Autonomous navigation of RISoUAVs for LoS wireless communication is a natural multi-dimensional extension of autonomous navigation with obstacle avoidance where regions in which LoS communication is lost are viewed as obstacles to avoid. However, the environment and valid LoS links can change dynamically due to moving vehicles in the obstructed environment. This makes the navigation design an NP-hard problem that is tackled in this paper by developing an effective navigation program.