Polydiallylamine copolymers are copolymers comprising monomers of polydiallylamine and either polyvinlyamine or polyallylamine. Polydiallylamine copolymers are often crosslinked. The polydiallyamine copolymers are useful as pharmaceutical compositions and may be used in the treatment of type 2 diabetes and for mitigating the complications of type 2 diabetes.