The first polyoxometalate (POM)-containing nanocage based metal-organic framework (Zn-POMCF) was synthesized by a surfactant-assisted method. In contrast to the Zn-based metal-organic framework (Zn-MOF), the cooperative assembly of POM and a Zn/trz macrocycle gave rise to high stability and good electrochemical ability of the Zn-POMCF in lithium-ion batteries (LIBs).