Macrolide antibiotics like azithromycin rely on a complex ring structure that’s powerful but notoriously hard to control.