The facile synthesis of a single atom-dispersed silver-modified ultrathin g-C3N4 hybrid for the enhanced visible-light photocatalytic degradation of sulfamethazine with peroxymonosulfate.