Nanoporous metal oxide framework compositions useful as anodic materials in a lithium ion battery, the composition comprising metal oxide nanocrystals interconnected in a nanoporous framework and having interconnected channels, wherein the metal in said metal oxide comprises titanium and at least one metal selected from niobium and tantalum, e.g., TiNb.sub.2-x Ta.sub.xO.sub.y (wherein x is a value from 0 to 2, and y is a value from 7 to 10) and Ti.sub.2Nb.sub.10-vTa.sub.vO.sub.w (wherein v is a value from 0 to 2, and w is a value from 27 to 29). A novel sol gel method is also described in which sol gel reactive precursors are combined with a templating agent under sol gel reaction conditions to produce a hybrid precursor, and the precursor calcined to form the anodic composition. The invention is also directed to lithium ion batteries in which the nanoporous framework material is incorporated in an anode of the battery.