Mg2+ and W6+ cations were first codoped into the VO2 lattice, resulting in a widened photon band gap and h+/e− charge carrier accumulation. These effects enhanced the thermochromic performance with a high visible transmission (∼80%) and a low phase transition temperature (∼30 °C).