CO2 hydrogenation has attracted intense scientific attention yet suffers from the disadvantage of poor activity and low selectivity. Here, the authors report that Cu single atom catalysts with tailored coordination environments on C3N4 serve as highly selective catalysts for CO2 hydrogenation.