Controllable assembly of a three-dimensional metal-organic supramolecular framework displaying hydrogen-bonding and π-π stacking interactions.