The paper reports new hydrogels based on quaternary ammonium salts of chitosan designed as biocidal products. The chitosan derivative was crosslinked with salicylaldehyde via reversible imine bonds and supramolecular self-assemble to give dynamic hydrogels which respond to environmental stimuli. The crosslinking mechanism was demonstrated by 1H NMR and FTIR spectroscopy, and X-ray diffraction and polarized light microscopy. The hydrogel nature, self-healing and thixotropy were proved by rheological investigation and visual observation, and their morphology was assessed by scanning electron microscopy. The relevant properties for application as biocidal products, such as swelling, dissolution, bioadhesiveness, antimicrobial activity and ex-vivo hemocompatibility and in vivo local toxicity and biocompatibility on experimental mice were measured and analyzed in relationship with the imination degree and the influence of each component. It was found that the hydrogels are superabsorbent, have good adhesivity to skin and various surfaces and antimicrobial activity against relevant gram-positive and gram-negative bacteria, while being hemocompatible and biocompatible. Besides, the hydrogels are easily biodegraded in soil. All these properties recommend the studied hydrogels as ecofriendly biocidal agents for living tissues and surfaces, but also open the perspectives of their use as platform for in vivo applications in tissue engineering, wound healing, or drug delivery systems.