A channel-equipped metal-organic framework (1-pyr), resulting from the pyrolysis of [(CH3)2NH2]@[Eu2L3(HCOO)] (1) (L(2-) = isophthalate), showed the preferable absorption of CO2 and the Eu(III)-based emission quenched by aromatics.