The present invention encompasses compounds and methods for treating and preventing bacterial infections specifically urinary tract infections and those caused by bacteria containing type 1 pili and FimH. The present invention also encompasses compounds and methods for treating inflammatory bowel disease specifically Crohn's Disease.