(a) Representative structure of the metal–organic framework Mg2(dobpdc). Green, red, gray, and white spheres represent Mg, O, C, and H atoms, respectively. The inset shows a single open MgII site appended with a diamine molecule. (b) Depiction of cooperative CO2 insertion into a row of MgII–diamine sites to form ammonium carbamate chains along the pore axis. The threshold conditions for cooperative adsorption can be tuned by modifying the diamine structure to adjust the strength of the metal–amine bond and the ammonium carbamate ion-pairing interaction.