The invention discloses a drug for treating surgical infection and a preparation method thereof. The drug for treating surgical infection is prepared from 10 g of paniculate swallowwort roots, 10 g of radix sophorae flavescentis, 10 g of cortex phellodendri, 5 g of herba menthae, 20 g of mirabilite, 10 g of garden burnet roots, 2 g of radix notoginseng, 6 g of herba taraxaci, 5 g of honeysuckle flowers, 3 g of wild chrysanthemum flowers, 10 g of common bletilla tubers, 30 g of calcined dragon's bones, 15 g of Japanese thistle herb or roots, 15 g of crinis trachycarpi, 15 g of common cnidium fruit, 10 g of broom cypress fruit, 15 g of white snake skin, 5 g of herba violae, 5 g of herba portulacae and 6 g of herba patriniae. Herba taraxaci, wild chrysanthemum flowers and licorice roots are all effective heat-clearing and detoxifying agents and are rich in multiple antimicrobial, antiviral and antifungal material ingredients; paniculate swallowwort roots clear heat, remove toxicity and resist inflammation; radix sophorae flavescentis relieves itching, cortex phellodendri clears heat and removes dampness, and herba menthae removes toxicity, expels pus and can achieve cool and relieve discomfort such as pyrexia of patients; and mirabilite removes swelling, garden burnet roots cool the blood, stop bleeding and promote healing of wounds, radix notoginseng removes blood stasis and stops bleeding, common bletilla tubers stop bleeding, and common cnidium fruit, broom cypress fruit and white snake skin relieve itching.