The application discloses a bacteriostatic agent, a preparation method and an application thereof. The antibacterial agent is made of the following raw materials in parts by mass: 180-220 parts of Smilax cocos, 180-220 parts of Curcuma, 130-170 parts of Sophora flavescens, 130-170 parts of Cortex Phellodendri, 130-170 parts of Fructus Cnidii, 80-parts of safflower 120 servings and borneol 28‑32 servings. The antibacterial gel made by the following steps: weighing, alcohol extraction, water extraction, alcohol precipitation, preparation, dissolution, stirring, mixing, filling, etc. has strong antibacterial ability and can effectively solve Staphylococcus aureus, white Gynecological itching caused by Candida, Escherichia coli, etc., good transdermal effect, no side effects, high safety, fast action speed, good stability, no pollution to the environment, no stimulation to humans and animals, no toxic side effects .