New class of molecules could fend off drug-resistant bacteria.