Hybrid DFT calculations are employed to compare the adsorption and stabilization of Cu, Ag, and Au atoms on graphitic C3N4 and on the heterojunction formed by g- C3N4 and TiO2. While Cu and Ag can be strongly chemisorbed in form of cations on g- C3N4, Au is only weakly physisorbed. On g- C3N4/TiO2, all coinage metal adatoms can be strongly chemisorbed, but, while Cu and Ag forms cations, Au form an Au- species. Ab Initio Molecular Dynamics simulations confirm that the metal adatoms on g-C3N4 are highly mobile at room temperature, while they remain confined in the interfacial spacing between C3N4 and TiO2 on the heterojunction, being both stably bound and reachable for the reactants in a catalytic cycle. Doping g- C3N4/TiO2 with metal single atoms permits thus to generate catalytic systems with tunable charge and chemical properties and improved stability with respect to bare C3N4. Moreover, the changes in the electronic structure of g- C3N4/TiO2 induced by the presence of the metal single atoms are beneficial also for photocatalytic applications.