A versatile approach towards the compaction, decompaction, and immobilization of DNA at interfaces by using cyclodextrins.