A 1D anionic lanthanide coordination polymer as an adsorbent material for the selective uptake of cationic dyes from aqueous solutions.