A polyelectrolyte coating comprises at least one polycationic layer consisting of at least one polyarginine as herein defined and at least one polyanionic layer consisting of hyaluronic acid. The polyelectrolyte coating has a biocidal activity and the invention thus further refers to the use of said polyelectrolyte coating for producing a device, in particular a bacteriostatic medical device, more particularly an implantable device, comprising said polyelectrolyte coating, and a method for preparing said device and a kit. Also disclosed is a method of preventing a bacterial infection in an individual.