The invention provides a method for treating infections in animals which are caused by toxin-producing enteric bacterial pathogens, including Shigella species, enterohemorrhagic E. coli, and enterotoxigenic E. coli. Receptors expressed by animal cells which typically recognize these bacterial toxins may be modified by administration of swainsonine compounds to the animal, thereby effectively inhibiting toxin binding to the cells.