Two novel MMOFs, JLU-Liu5 and JLU-Liu6, are based on ternary building units and exhibit high adsorption selectivity for CO2, C2H6 and C3H8 over CH4, which is attributed to steric effects and host-guest interactions. These MMOFs are promising materials for gas adsorption and natural gas purification.