The stronger absorption of intermediate molecules, the lower free energy barrier, and the smaller band gap as well as the charge accommodation mechanism compared with the intrinsic case reveal that Co-doped CsPbBr3 could be a promising candidate for CO2 reduction.