The highly selective oxidation of just one carbon–hydrogen bond out of almost 50 in a late-stage precursor can be used to construct the macrocyclic core on which the erythromycin antibiotics are based, and demonstrates the potential of such C–H activation approaches for natural product synthesis.