A MOF with contracted pores and multiple functionalities showing high selectivities on CO2/N2 and CO2/CH4 gas mixtures was constructed.