Stepwise adsorption in a metal-organic framework with both micro- and meso-pores is caused by adsorbates first filling the micropores, then adsorbing along the mesopore walls, and finally filling the mesopores.