Two novel porous zeolitelike metal-organic frameworks (ZMOFs) were constructed via the single metal ion-based molecular building block approach from rigid and directional tetrahedral building units and pyrimidinecarboxylate bridging ligands; their ion exchange and hydrogen sorption properties were evaluated.