The hydrogenation of CO2 on CeNi catalyst modified with g-C3N4 (CeNiCN) as a sacrificial and protective template was studied by in-situ DRIFTS and Kinetics experiments to investigate the influence of modification on the catalytic activity and selectivity to gain mechanistic insight. After modification, the catalyst showed higher catalytic activity and selectivity. H2-TPR, CO2-TPD, TEM and XPS confirmed that this modification could enhance the interaction of nickel and ceria and decrease the particle size of nickel, which is in favor of the dissociation of H2 and adsorption of CO2. The in-situ DRIFTS experiments demonstrated that CO2 is adsorbed on ceria sites, forming carboxylate (CO2δ−), unidentate carbonate and bicarbonates, which, in turn, react with adsorbed and dissociated H on Ni to produce formate species. Furthermore, adsorbed methoxy species were observed, which are recognized to be intermediates in the methanation process. In-situ transient DRIFTS confirm that the adsorbed CO is not a reaction intermediate, but a by-product, which originates from the decomposition of weak-binding formate species on Ce3+ sites. The unmodified catalyst has more weak-binding formate species, which are more inclined to decompose into CO accounting for the low selectivity. Furthermore, the adsorbed CO on Ce3+ sites cannot react with the adsorbed hydrogen to produce methane. Kinetics studies are consistent with a Langmuir-Hinshelwood type mechanism in which the formation of bicarbonate is the rate-determining step (RDS).