The present invention relates to a method for removing bile acids from a patient and certain polymers of use in the method. The method comprises the step of administering to the patient a therapeutically effective amount of a polymer composition which includes a a poly(diallylamine) polymer which is substituted with hydrophobic groups. The hydrophobic groups can be a substituted or unsubstituted, straight chain or branched C3–C24-alkyl group, an aralkyl group or an aryl group.