The invention provides an intelligent window based on a ZnO-based transparent 
solar cell and a preparation method of the intelligent window. The intelligent window comprises a glass substrate layer, afirst latticed Ag 
nanowire electrode layer, an n-type ZnO thin-film layer, a P-type ZnMgO thin-film layer, a second latticed Ag 
nanowire electrode layer and an Ag nano particle thin-film layer, wherein the above 
layers are sequentially arranged from bottom to top. According to the invention, the Ag nano particle thin-film layer is adopted as a 
mask, and the transverse overgrowth is promoted. Thedislocation 
annihilation is induced, and the quality of the P-type ZnMgO thin-film layer is improved. Meanwhile, the Ag nano particle layer has the local-area surface 
plasma enhancement effect, so that the solar conversion efficiency is improved. The self-cleaning function is further realized, so that the later maintenance cost is further reduced. In addition, a single 
solar cell is formed by then-type ZnO thin-film layer and the P-type ZnMgO thin-film layer, so that the 
solar energy is absorbed and stored by the single 
solar cell. In addition, due to the fact that Ag particles have excellentreflection characteristics for 
infrared rays, Ag nanowires and Ag nano particles can reflect most of 
infrared rays indoors. The effect of winter warming is achieved.