FIELD: medicine.SUBSTANCE: invention relates to medicine, namely, operative traumatology and orthopedics. Method for treating a paraprosthetic infection, comprising firstly rinsing the wound by inserting an antiseptic or antibacterial drug through a supply drainage tube and removing wound fluid through the outflow drainage tube into the external environment. In this case, the initial washing of the wound is performed automatically after a predetermined time after the initial wound washing, which is necessary for the formation of physical and chemical parameters of the environment under the influence of the microflora of the wound. Before removing wound fluid, the following actions are also automatically performed: filtration of the wound fluid, measurement of its physicochemical parameters: pH, oxygen concentration, temperature, pressure, potential, the corresponding sensors, and analysis of these parameters. Wash the wound with saline by inserting it through the supply drainage tube and remove wound fluid through the drainage tube. Simultaneously, administer drug with a physiological solution at a concentration sufficient for the manifestation of the effect of the drug to the wound, after a predetermined time, sufficient for the manifestation of the effect of the drug after its administration with physiological solution into the wound – the filtration of the wound fluid. Its physical and chemical parameters are measured by the corresponding sensors. In the absence of a characteristic of the antibacterial effect of the drug, changes in one or more physicochemical parameters of the wound fluid relative to the previous value of the corresponding parameter, wound is washed with saline by inserting it through the supply drainage tube and removing wound fluid through the drainage tube. Administration of another drug with physiological solution at a concentration sufficient for the manifestation of the effect of the drug is carried out until the next drug is detected with