Use of a chitosan polymer crosslinked with genipin of a general formula 1 wherein R denotes H or -COCH3 or -CH2CH(OH)CH2N+(CH3)3 or X group with the formula 2 or with the formula 3, and n and m are natural numbers, for the removal of heparin from blood and physiological liquids of mammals.