The invention discloses a preparation method of a pharmaceutical composition for killing scarab beetles, which comprises the following steps: 1) preparing raw materials; 2) decocting pomegranate peel, jasmine bark, and purple pearl leaves with water for two times, and the medicinal solution is set aside; 3) Add water to decoct cinnamon, thousand hammers, Qingfengteng, Qumai, Qingyuzi, and Huangpigen twice, filter, and concentrate the filtrate to a relative density of 1.8; 4) Combine the liquid medicine; 5) Adjust the pH value of the solution ; 6) Filter, fill, sterilize, and obtain. The pharmaceutical composition described in the present invention can kill scarabs in a targeted manner, has good safety, good biodegradation, no pollution and irritating odor, no environmental toxicity, no residue in animals, and does not destroy ecological balance. The crop growth environment has little impact; it has good permeability and moisture, interferes with the central nervous system of insects, inhibits the synthesis and development of insect eggs, and is not easy to develop drug resistance; it has good quick effect and is suitable for widespread application in pest control.