Improving nitrogen use efficiency of chemical fertilizers is essential to mitigate the negative environmental impacts of nitrogen. Nitrification, the conversion of ammonium to nitrate via nitrite by soil microbes, is a prominent source of nitrogen loss in soil systems. The effectiveness of nitrification inhibitors in reducing nitrogen loss through inhibition of nitrification is well-documented, however, their efficacy in heavy metals-contaminated soils needs thorough investigations. The current study assessed the efficacy of nitrification inhibitor 3, 4-dimethylpyrazole phosphate (DMPP) in reducing nitrous oxide (N2O) emissions in cadmium (Cd) contaminated paddy and red soils under lab-controlled environment. Obtained results indicated the substantial reduction in N2O emissions with DMPP in paddy and red soil by 48 and 35 %, respectively. However, Cd contamination resulted in reduced efficacy of DMPP, thus decreased the N2O emissions by 36 and 25 % in paddy and red soil, respectively. It was found that addition of DMPP had a significant effect on the abundance of ammonia oxidizing bacteria (AOB) and archaea (AOA). Notably, the reduction in N2O emissions by DMPP varied with the abundance of AOB. Moreover, Cd pollution resulted in a significant (P < 0.05) reduction in the abundance of archaeal and bacterial amoA genes, as well as bacterial nirK, nirS, and nosZ genes. The combined treatment of Cd and DMPP had a detrimental impact on denitrifiers, thereby influencing the overall efficiency of DMPP. These findings provide novel insights into the application of DMPP to mitigate nitrification and its potential role in reducing N2O emissions in contaminated soils.