Metal-organic frameworks [M2(2-I-bdc)2bpe] (M = Zn(II) (1), Co(II) (2), 2-I-bdc = 2-iodoterephtalic acid, and bpe = 1,2-bis(4-pyridyl)ethane) were prepared and characterized by X-ray diffractometry. Both compounds retain their 3D structure after the removal of guest DMF molecules. Selectivity of sorption of different organic substrates from the gas phase was investigated for both complexes.