A bifunctional resin with thiol and quaternary ammonium groups was prepared from a macroporous strongly basic anion exchange resin of the styrene-divinylbenzene type. The key step of the synthesis is the reaction of the quaternary benzyltrimethylammonium group of the ion exchange resin with suitable sulfur-containing nucleophiles. Three synthetic routes are described: direct conversion to thiol with sodium sulfide, reaction with potassium O-ethyl dithiocarbonate followed by decomposition of the dithiocarbonate with ammonia or acid and conversion to polymeric isothiuronium salt by the reaction with thiourea and subsequent alkaline hydrolysis to thiol. Sorption of arsenate on thiol resin and its Fe(III) complex was studied.