Through continuous experiments, scientists have found that nanomaterials have self-cleaning properties. Solar cells coated with nanometer film can keep their surface clean for a long time and maintain high photoelectric conversion efficiency. nanodiamond films were prepared on glass substrate by sol-gel method. nanosilicon carbide was also selected as the contrast material. Silicon carbide (SiC) has good chemical stability, corrosion resistance and other characteristics. nanosic films were prepared by sol-gel method on glass substrate. The production cost of sol-gel method was relatively low, the coating uniformity was suitable for mass production