Green and versatile! The photocatalytic C(sp2)−H azolation of arenesusingheterogeneouscarbonnitride is reported. This strategy exhibits a broad substrate scope and is amenable to the late-stage functionalization of several pharmaceuticals. The catalyst can be easily recovered and reused leading to greener and more sustainable routes.