Three allomorphs with the same stoichiometry, [Mg(3)(H(2)O)(4)(5-aip)(2)(5-Haip)(2)]·4DMA, were solvothermally synthesized in the presence of different additives and represented the first 8-connected nanotubular networks in Mg-based metal-organic frameworks. The adsorption and delivery of drugs were also determined.