A three dimensional -NH2 functionalized Zeolitic Tetrazolate Framework (ZTF-1) has been reported. The framework adopts a dia topology (M-L-M angle is close to 156°). ZTF-1 shows high CO2 (273 K) and H2 (77 K) uptake due to the presence of the free -NH2 group and uncoordinated tetrazolate nitrogen. © 2011 The Royal Society of Chemistry.