A photoredox catalytic route to carbamates enabled by visible irradiation (or simply sunlight) has been developed. This process leads to a novel approach to the construction of heterocyclic rings wherein the amide or ester motifs of carbamates were assembled from