Crop rotation benefits soil fertility and crop yield by providing organic components including cellulose, lignin, chitin, and glucans that are mainly degraded by soil microbial carbohydrate-active enzymes (CAZymes). However, the impacts of crop rotation on soil microbial CAZyme genes are not well understood. Hence, CAZyme genes and families involved in the degradation of differentially originated organic components were investigated using metagenomics among distinct crop rotations. Crop rotation had a more significant effect on soil nitrogen than on carbon fractions with higher content in the complex rotation referring to alfalfa (Medicago sativa L.; 4 year)-potato (Solanum tuberosum L.; 1 year)-winter wheat (3 year; A4PoW3). The composition of soil microbial CAZyme genes related to the degradation of fungi-derived components was more affected by crop rotation compared with the degradation of plant- and bacteria-derived components. The total abundance of CAZyme genes and families was significantly higher in the complex rotation. Notably, CAZyme genes belonging to glycoside hydrolase and glycosyl transferase families had more connections in their network. Moreover, key genes including CE4, GH20, and GH23 assembled toward the middle of the network, and were significantly regulated by dominant soil nitrogen fractions including soil potential nitrogen mineralization and microbial biomass nitrogen. Soil multifunctionality was mostly explained by the composition and total abundance of CAZyme genes, but wheat grain yield was profoundly regulated by fungi-derived components degradation genes under effects of dominant nitrogen fractions. Overall, the findings provide deep insight into the degradation potentials of soil microbial CAZyme genes for developing sustainable crop rotational agroecosystems.