Two novel porous anionic zeolite-like metal–organic frameworks, rho-ZMOF and sod-ZMOF, have been synthesized by metal-ligand-directed assembly of rigid and directional tetrahedral building units, InN4 synthesized in situ, and doubly deprotonated bis(bidentate) imidazoledicarboxylic acid ligands (HImDC) in the presence of different structure directing agents (SDAs).