Abstract:【Objective】Purple soil is a typical agricultural soil type in the upper reaches of the Yangtze River, and differences among purple soil types can significantly affect soil quality and nutrient cycling processes. Viruses are important regulators of microbial metabolism and nutrient transformation; however, differences in their community characteristics and ecological functions among different types of purple soils remain unclear. 【Method】Typical acid purple soils (AC), neutral purple soils (NE), and alkaline purple soils (AL) from Sichuan Province were selected for this study. Metaviromic sequencing was used to systematically characterize viral diversity, differences in metabolic functions, and virus–host interaction patterns among purple soils with different pH levels. 【Results】Viral diversity was highest in AL soil and lowest in NE soil (P<0.05). In contrast, NE soil exhibited relatively high abundances of viral functional genes associated with carbon, nitrogen, and phosphorus metabolism, together with greater pathway completeness, including key metabolic genes such as porA, ack/acs, and ppx/ppa. The predicted viral hosts in NE soil were taxonomically diverse and included Cyanobacteriota, Actinomycetota, and Pseudomonadota. In AL soil, viral functions were mainly associated with key genes such as phoB/phoR and amoA, suggesting potential advantages in specific metabolic pathways related to phosphorus acquisition and regulation and nitrification. Predicted hosts included Candidatus Dadabacteria and Verrucomicrobiota. In AC soil, viruses were enriched in gcd and pstC/pstA, which are associated with high-affinity inorganic phosphorus solubilization and uptake, suggesting that viral communities may enhance phosphorus acquisition under acidic conditions and contribute to maintaining nutrient supply and metabolic stability. 【Conclusion】These results demonstrate that viruses and their hosts form distinct interaction networks among different purple soil types, highlighting the important potential of viruses in soil nutrient utilization. This mechanistic understanding provides an important reference for improving soil quality and optimizing fertilization management through virus–host interactions.