VO2 is a kind of thermochromatic material, whose metalsemiconducting phase transition temperature is 68℃. The optical property of VO2 will change a lot before and after the transition, such as the higher transmittance at low temperature and the lower transmittance at high temperature. Depositing VO2 film on glass to form smart window makes it possible to adjust automatically the temperature in automobiles, buildings etc. Thus intelligent use of the sun's energy can be achieved so as to save the energy of the earth. This article analyses the principle and discusses the related issues.