<p>Method for controlling pests, designed especially for combating the Pine processionary pest or the like, which consists of selective disinfection by means of the triggering of capsules containing the pesticide agent at the site where the pest is present at the time of application. The capsule will be formed by an easily ruptured biodegradable material that will splash its contents over the impact area and impregnate the leaves or trunk where the insect is located.</p>