An electrode comprises a conductor and an electrode coating, said electrode coating comprising as electronically active material a transition metal (T) oxidenitride of formula LixTImTIInNyOz form of nanoparticles, wherein x=0-3, y+z=2-4, y>0, z>=0.25, m+n=1, m=0-1, n=0-1, TI and TII both being transition metals of the groups IVB, VB, VIB and VIIB, and periods 3d, 4d and 5d, in particular transition metals selected from Zr, Nb, Mo, Ti, V, Cr, W, Mn, Ni, Co, Fe and Cu. Dependent on the kind of transition metal, its oxidation state and the Li content, such materials may be used as anode materials or as cathode materials, respectively.