A benzothiadiazole-involving donor-acceptor (D-A) covalent organic framework (COF), which has high crystallinity and strong light-harvesting capability (ranging from 300 to 800 nm), can serve as a highly effective photocatalyst for window ledge aerobic cross-dehydrogenative coupling (CDC) reactions (such as Mannich and aza-Henry reactions) even at a gram level.