The invention provides a method for preparing a smart window, the smart window includes a smart window based on passive matrix organic light emitting diodes and a smart window based on active matrix organic light emitting diodes, comprising: an anode deposition step, a substrate pattern making step, organic material evaporation Plating steps, electron injection layer manufacturing steps, cathode manufacturing steps, protective layer manufacturing steps, planarization layer and liquid crystal scanning electrode manufacturing steps, liquid crystal control unit manufacturing steps, liquid crystal filling steps, packaging steps. The present invention fills a specific liquid crystal material between the transparent OLED cathode and the back cover, which can not only reduce the loss of total reflection on the light-emitting surface of the OLED cathode, but also realize the free conversion of OLED transmission and reflection through power-on and power-off of the liquid crystal, and achieve intelligent control The purpose of light emission and independent display, so that the prepared smart window has a simple structure, thin thickness, low power consumption, privacy protection, and independent display functions. It has great application potential in many scenarios such as vehicles, shopping malls, and aviation.