The invention discloses an ointment for preventing and treating longicorns with systemic conduction function, which belongs to the field of pesticides and preparations thereof, and is prepared by mixing trifluoropyrim, quinthion and auxiliary agents, wherein trifluoropyrim, quinthio The percentage by weight of phosphorus accounting for the total weight of the ointment is 0.1-20%, 0.1-20%, and the rest are auxiliary agents. The auxiliaries include solvents, adhesives and fillers, wherein the weight percentages of the solvents, adhesives and fillers in the total weight of the ointment are 0.1-80.0%, 0.1-80.0%, and 0.1-80.0%, respectively. The invention also discloses a method for using the above-mentioned ointment: the ointment of the invention is applied to the peeled bark, which has good adhesion and long-lasting effect, is easy to apply, improves the utilization rate of the medicament, and reduces environmental pollution. The ointment can be sucked into the plant through the plant epidermis, and the ointment of the invention has a certain contact killing effect, which can prevent pests from crawling up and down the trunk, thereby greatly reducing the damage to the plant.