The invention discloses a preparation of a sunlight-driven thermochromic material. The preparation comprises the following steps: synthesizing different resonance wavelengths of gold nanoparticles by utilizing a seed-growth solution method, preparing a gold nanoparticle water solution after mixing, and enabling an absorption spectrum of the gold nanoparticle water solution to be consistent with a sun emission spectrum; synthesizing diacetylene vesicles by utilizing a heating-ultrasound-self assembly method, inducing a topology reaction under ultraviolet light of which the wavelength is 254 nm, and forming a polydiacetylene vesicle colloidal solution; mixing the gold nanoparticle water solution and the polydiacetylene vesicle colloidal solution with a polyvinyl alcohol solution obtained through heating dissolution, preparing a thin film, and airing in a shade and ventilated place under room temperature, thus obtaining the sunlight-driven thermochromic material. According to the preparation disclosed by the invention, the defect of an existing thermochromic material that a heat source is required to be additionally added is abandoned, the sunlight is directly utilized as a driving force, and a thermochromic material is changed into sunlight-controlled photochromic material; the temperature of a photothermal conversion effect is controllable, discoloration is sensitive, the contrast is large, application of the sunlight-driven thermochromic material is more convenient and relaxed, and the application field of the sunlight-driven thermochromic material is broadened.