The rotational relaxation behavior of D2(1,12) in a D2-N2 mixture was investigated using coherent anti-Stokes Raman scattering (CARS) technique. The rovibrational level v = 1 and J = 12 of D2 was selectively excited through stimulated Raman pumping while monitoring the temporal evolution of population for D2(1, J ≤ 12) molecules using time-resolved CARS spectroscopy. The results demonstrate that the rotational relaxation processes of D2(1,12) encompass both multi-quantum relaxation and continuous single-quantum relaxation. When α, the molar ratio of N2, is less than 0.5, D2(1,12) predominantly undergoes a single quantum relaxation process transition. However, when α ≥ 0.5, the multi-quantum relaxation mechanism gradually predominates. The total rotational relaxation rate coefficients of D2(1,12) collisions with N2 and D2 at 295K were determined to be 3.974 × 10-14 and 1.179 × 10-14cm3s-1, respectively. The temperature dependence of rotational relaxation rate of D2(1,12) was investigated within the temperature range of 295-453K. With increasing temperature, the dominant relaxation process exhibited an accelerated behavior, while the minor relaxation process remained largely unaffected. The rotational temperature of the D2molecule at various N2 molar ratios was determined through the utilization of Boltzmann plots. The rotational temperature undergoes a rapid decline within 2 μs, corresponding to the near-resonant rotation-vibration relaxation process of D2(1,12) collisions with N2. The system reaches a quasi-equilibrium state when the delay time is 3 μs. The findings of this study can serve as a valuable empirical basis for further validation of the kinetic theory and simulation.