The invention relates to the fields of polymer chemistry, pharmacy and medicine and relates to a method, which for example releases drugs as a component of implants into the environment of the implant. The object of the present invention is to disclose a method which in a simple and easily reproducible manner generates a drug delivery system, which releases drugs in a locally targeted and controllably delayed manner. The object is attained by a method in which polyanions and polycations are mixed in a liquid in a non-stoichiometric ratio, relative to the charged monomer units, wherein drugs are added to the polyelectrolytes either before, during or after the mixing, or charge-carrying drugs and an oppositely charged polyelectrolyte are mixed, and after the mixing the polyelectrolyte complex produced is applied to the surface of a medical means or is positioned on the surface directly at the location where the drug is to be released.