Two new three-dimensional porous Cd(II)-based metal−organic frameworks, [Cd2(oba)2(4-bpdb)2]n·(DMF)x (TMU-8) and [Cd(oba)(4,4'-bipy)]n·(DMF)y (TMU-9) have been synthesized via mechanosynthesis, by using a nonlinear dicarboxylate and linear N-donor ligands then characterized by single-crystal X-ray crystallography. The effect of using different N-donor ligands 1,4-bis(4-pyridyl)-2,3-diaza-1,3-butadiene (4-bpdb) and 4,4ʹ-bipyridine (4,4ʹ-bipy) as pillars on the final structure has been studied. Also removal efficiency and order reaction kinetics of these MOFs in presence of congo red were investigated.