The invention provides an automobile glass detergent, which comprises the following components in parts by weight: 50 to 70 parts of selaginella uncinata extract, 10 to 15 parts of alkenyl succinic anhydride, 15 to 20 parts of trisodium nitrilotriacetate, 10 to 15 parts of barium sulfate, 5 to 12 parts of citronella oil, 20 to 30 parts of Chinese rose extract, 7 to 12 parts of glycerin, 5 to 8 parts of surfactant, 6 to 9 parts of antioxidant, and 100 to 150 parts of isopropanol. The detergent is prepared by the following steps: evenly mixing and stirring alkenyl succinic anhydride, trisodium nitrilotriacetate, barium sulfate, and isopropanol, then adding selaginella uncinata extract and Chinese rose extract, heating to a temperature of 38 DEG C, maintaining the temperature for 2 hours, heating the mixture under stirring, finally adding residual components, evenly stirring, allowing the system to stand still for 10 to 15 hours, and taking the supernate namely the automobile glass detergent. The detergent comprises selaginella uncinata extract and Chinese rose extract, has a strong decontaminating performance, can kill bacteria, and does not leave any mark on the glass.