Metal-cation-directed de novo assembly of a functionalized guest molecule in the nanospace of a metal-organic framework.