To address rising global food demand, the development of sustainable technologies to increase productivity is urgently needed. This study revealed that foliar application of zinc oxide nanoparticles (ZnO NPs; 30 to 80 nm, 0.67 mg/d per plant, 6 d) to rice leaves under heatwave (HW) stress increased the grain yield and nutritional quality. Compared with the HW control, the HWs+ZnO group presented increases in the grain yield, grain protein content, and amino acid content of 22.1%, 11.8%, and 77.5%, respectively. Nanoscale ZnO aggregated on the leaf surface and interacted with leaf surface molecules. Compared with that at ambient temperature, HW treatment increased the dissolution of ZnO NPs on the leaf surface by 25.9% and facilitated their translocation to mesophyll cells. The Zn in the leaves existed as both ionic Zn and particulate ZnO. Compared with the HW control, foliar application of ZnO NPs under HW conditions increased leaf nutrient levels (Zn, Mn, Cu, Fe, and Mg) by 15.8 to 416.9%, the chlorophyll content by 22.2 to 24.8%, Rubisco enzyme activity by 21.2%, and antioxidant activity by 26.7 to 31.2%. Transcriptomic analyses revealed that ZnO NPs reversed HW-induced transcriptomic dysregulation, thereby enhancing leaf photosynthesis by 74.4%. Additionally, ZnO NPs increased the diversity, stability, and enrichment of beneficial microbial taxa and protected the phyllosphere microbial community from HW damage. This work elucidates how NPs interact with the phyllosphere, highlighting the potential of NPs to promote sustainable agriculture, especially under extreme climate events (e.g., HWs).