This paper investigates the throughput optimization strategy in an unmanned aerial vehicle (UAV)-enabled emergency outdoor–indoor fairness communication scenario, with the UAV as a mobile relay station in the air, to provide outdoor–indoor communication services for users inside buildings. The occurrence of severe signal fading caused by outdoor transmission loss through wall loss as well as indoor transmission loss when the UAV forwards the information to the indoor users reduces the channel gain and degrades the system downlink throughput. To improve the downlink throughput of the system and ensure communication fairness for indoor users, we designed a joint UAV location deployment and resource allocation (JLRO) algorithm that optimized UAV three-dimensional (3D) deployment location, power and bandwidth resource allocation. The simulation results demonstrate the convergence and validity of the proposed JLRO algorithm, as well as its superiority compared to benchmark algorithms.