A method of producing a sorbent for selective extraction of scandium ions, including the step of acylating a styrene-divinylbenzene copolymer with acetyl chloride in dichloroethane solution in the presence of anhydrous aluminum chloride, washing, drying, the step of phosphorylation of the acylation product with phosphorus trichloride, the step of hydrolysis with ice water, final washing of the target product characterized in that the starting copolymer is a macroporous styrene-divinylbenzene copolymer, the acylation is carried out at the boiling point of acetyl chloride solution, phosphorylation is carried out by preliminary holding the reaction mass at room temperature followed by introduction of glacial acetic acid in it with an additional holding of the reaction mass under stirring.