Acid/base- and base/acid-switchable complexation between anionic-/cationic-pillar[6]arenes and a viologen ditosylate salt.