The proliferation of nitrile mixtures has significantly exacerbated environmental pollution. This study employed metagenomic analysis to investigate the short-term effects of nitrile mixtures on soil microbial communities and their metabolic functions. It also examined the responses of indigenous microorganisms and their functional metabolic genes across various land use types to different nitrile stressors. The nitrile compound treatments in this study resulted in an increase in the abundance of Proteobacteria, Actinobacteria, and Firmicutes, while simultaneously reducing overall microbial diversity. The key genes involved in the denitrification process, namely, nirK, nosZ, and hao, were down-regulated, and NO3−-N, NO2−-N, and NH4+-N concentrations decreased by 7.7%–12.3%, 11.1%–21.3%, and 11.3%–30.9%, respectively. Notably, pond sludge samples exhibited a significant increase in the abundance of nitrogen fixation-related genes nifH, vnfK, vnfH, and vnfG following exposure to nitrile compounds. Furthermore, the fumarase gene fumD, which is responsible for catalyzing fumaric acid into malic acid in the tricarboxylic acid cycle, showed a substantial increase of 7.2–10.6-fold upon nitrile addition. Enzyme genes associated with the catechol pathway, including benB-xylY, dmpB, dmpC, dmpH, and mhpD, displayed increased abundance, whereas genes related to the benzoyl-coenzyme A pathway, such as bcrA, dch, had, oah, and gcdA, were notably reduced. In summary, complex nitrile compounds were found to significantly reduce the species diversity of soil microorganisms. Nitrile-tolerant microorganisms demonstrated the ability to degrade and adapt to nitrile pollutants by enhancing functional enzymes involved in the catechol pathway and fenugreek conversion pathway. This study offers insights into the specific responses of microorganisms to compound nitrile contamination, as well as valuable information for screening nitrile-degrading microorganisms and identifying nitrile metabolic enzymes.