Disclosed herein are compounds useful in inhibiting the action of AB-type bacterial toxins such as cholera, traveler's diarrhea, enterohemorrhagic diarrhea caused by E. coli O157:H7 and pertussis or whooping cough. Also included in the invention is the use of these compounds in treatment of diseases associated with those toxins.