Long-term continuouscroppingcan lead to the deterioration of soil environment and the decrease of soil productivity. However, the biological mechanism on the negative effects of long-term continuous cropping has not been extensively explored. Soil nematode food web with multiple trophic levels play critical roles in nutrient cycling and energy flowing in the agroecosystem. Quantifying the carbon flux through different trophic channels within the nematode food web can indicate how continuous cropping influences carbon cycling in the agroecosystem by altering soil biota communities. Therefore, the effects of continuous peanut cropping with different years (1, 5, 20, and 30 years) on soil properties, soil nematode community composition, carbon flux within nematode food web and crop yields were investigated. Results showed that soil pH significantly decreased with increasing continuous cropping years. Differently, soil organic carbon and total nitrogen were the highest in 20-year, and decreased in 30-year of continuous cropping. As continuous cropping years increased, the relative abundance of microbivorous nematodes decreased and that of plant parasites reached as high as 76.11 % and 68.22 % in 20- and 30-year, respectively. Pearson correlation analysis revealed the nematode diversity, the carbon flux uniformity and peanut yield had a significant negative correlation with continuous cropping years. The random forest model indicated that the soil pH and the relative abundance of plant parasites were the key influence factor of the carbon flux uniformity within soil nematode food web. Outbreaks of plant parasites lead to the disruption of carbon flux uniformity within soil nematode food web, which can increase the risk of peanut yield decline after long-term continuous cropping. In conclusion, continuous peanut cropping changed soil properties, reduced soil nematode diversity, and disturbed the multitrophic carbon flux complementarity and uniformity in soil nematode food web, ultimately limiting the crop productivity. This study enhances our understanding of the importance of the resource transfers among soil food web in maintaining sustainable agroecosystem productivity.