A novel 3D metal-organic framework (MOF) with 2D rhombic channels was synthesized for selective adsorption of p-xylene from xylene isomers by acting as a molecular sieve.