The specificity of the malarial VAR2CSA protein for chondroitin sulfate depends on 4-O-sulfation and ligand accessibility.