The first aerobic oxidative coupling of resveratrol and its analogues by mesoporous graphitic carbon nitride as a bioinspired catalyst with visible light has been developed. With this method, δ-viniferin and its analogues were synthesized in moderate to high yield. The metal-free conditions, visible-light irradiation, and the ideal oxidant, molecular oxygen, make this coupling reaction environmental friendly and practical.