The present invention provides a crosslinked amine and amide polymers effective for binding and removing bile salts from the gastrointestinal tract. These bile acid binding polymers or pharmaceutical compositions thereof can be administered to subjects to treat various conditions, including hypercholesteremia, diabetes, pruritis, irritable bowel syndromediarrhea (IBS-D), bile acid malabsorption, and the like.