BackgroundUV-B, an important environmental factor, has been shown to affect the yield and quality of rice (Oryza sativa) worldwide. However, the molecular mechanisms underlying the response to UV-B stress remain elusive in rice.ResultsWe perform comprehensive metabolic profiling of leaves from 160 diverse rice accessions under UV-B and normal light conditions using a widely targeted metabolomics approach. Our results reveal substantial differences in metabolite accumulation between the two major rice subspecies indica and japonica, especially after UV-B treatment, implying the possible role and mechanism of metabolome changes in subspecies differentiation and the stress response. We next conduct a transcriptome analysis from four representative rice varieties under UV-B stress, revealing genes from amino acid and flavonoid pathways involved in the UV-B response. We further perform a metabolite-based genome-wide association study (mGWAS), which reveals 3307 distinct loci under UV-B stress. Identification and functional validation of candidate genes show that OsMYB44 regulates tryptamine accumulation to mediate UV-B tolerance, while OsUVR8 interacts with OsMYB110 to promote flavonoid accumulation and UV-B tolerance in a coordinated manner. Additionally, haplotype analysis suggests that natural variation of OsUVR8groupA contributes to UV-B resistance in rice.ConclusionsOur study reveals the complex biochemical and genetic foundations that govern the metabolite dynamics underlying the response, tolerance, and adaptive strategies of rice to UV-B stress. These findings provide new insights into the biochemical and genetic basis of the metabolome underlying the crop response, tolerance, and adaptation to UV-B stress.