Q[8]-based porous materials were synthesized in the presence of [Md-blockCl4](2-) anions as structure inducers. The driving forces of the structure-directing effect of the [Md-blockCl4](2-) anions may be due to the ion-dipole interaction and hydrogen bonding between the [Md-blockCl4](2-) anions and ≡CH or ═CH2 groups on the backs of Q[8] molecules. Moreover, the tests of potential applications show that these porous materials can not only capture organic molecules through the cavity of Q[8] moieties but also adsorb larger organic molecules with different selectivities.