Dicationic magnetic ionic liquids with heteroanionic anions allow for tunability of physicochemical properties while retaining magnetic susceptibility.