We herein demonstrate that mismatch binding ligands (MBL) can function as a molecular glue which brings two single stranded DNA (ssDNA) together to form the double stranded DNA (dsDNA). Incorporation of a photoisomerizable azobenzene linkage provides further ability of reversibly controlling duplex stability with light.