A hair treatment agent containing, based on its weight, a) from 0.05 to 5 wt.% of at least one chitosan and/or chitosan derivative and b) from 0.05 to 5 wt.% of at least one elastomeric silane or siloxane having quaternary ammonium groups in the molecule in the form of an oil-in-water (O/W) emulsion or a water-in-oil (W/O) emulsion or microemulsion, in which the silane or siloxane forms the oil phase, wherein the elastomeric silane(s) or siloxane(s) having quaternary ammonium groups in the molecule were obtained by reacting (i) an organic quaternary ammonium compound having epoxide groups or halohydrin groups, wherein the organic quaternary ammonium compound having epoxide groups is selected from glycidyl trimethylammonium chloride and/or glycidyl trimethylammonium bromide, and wherein the organic quaternary ammonium compound having halohydrin groups is selected from - (3-chloro-2-hydroxypropyl)trimethylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyloctadecylammonium chloride, - (3-chloro-2-hydroxypropyl)trimethylammonium bromide, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium bromide, - (3-chloro-2-hydroxypropyl)-dimethyloctadecylammonium bromide with (ii) a silane or siloxane having amino groups, in the presence of (iii) a branching agent, wherein the branching agent is selected from butanediol diglycidyl ether and/or polypropylene glycol diglycidyl ether, and (iv) a surfactant, wherein the surfactant is selected from ethoxylated alcohols of formula C n H 2n+1 (OCH 2 CH 2) x OH in which n represents numbers of between 8 and 20 and x represents numbers of from 8 to 18, dispersed in (v) an aqueous polar phase, wherein the agent contains from 0.1 to 4.5 wt.% of a neutralization product of chitosan and pyrrolidone carboxylic acid. a) from 0.05 to 5 wt.% of at least one chitosan and/or chitosan derivative and b) from 0.05 to 5 wt.% of at least one elastomeric silane or siloxane having quaternary ammonium groups in the molecule in the form of an oil-in-water (O/W) emulsion or a water-in-oil (W/O) emulsion or microemulsion, in which the silane or siloxane forms the oil phase, wherein the elastomeric silane(s) or siloxane(s) having quaternary ammonium groups in the molecule were obtained by reacting (i) an organic quaternary ammonium compound having epoxide groups or halohydrin groups, wherein the organic quaternary ammonium compound having epoxide groups is selected from glycidyl trimethylammonium chloride and/or glycidyl trimethylammonium bromide, and wherein the organic quaternary ammonium compound having halohydrin groups is selected from - (3-chloro-2-hydroxypropyl)trimethylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyloctadecylammonium chloride, - (3-chloro-2-hydroxypropyl)trimethylammonium bromide, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium bromide, - (3-chloro-2-hydroxypropyl)-dimethyloctadecylammonium bromide with (ii) a silane or siloxane having amino groups, in the presence of (iii) a branching agent, wherein the branching agent is selected from butanediol diglycidyl ether and/or polypropylene glycol diglycidyl ether, and (iv) a surfactant, wherein the surfactant is selected from ethoxylated alcohols of formula C n H 2n+1 (OCH 2 CH 2) x OH in which n represents numbers of between 8 and 20 and x represents numbers of from 8 to 18, dispersed in (v) an aqueous polar phase, wherein the agent contains from 0.1 to 4.5 wt.% of a neutralization product of chitosan and pyrrolidone carboxylic acid. (i) an organic quaternary ammonium compound having epoxide groups or halohydrin groups, wherein the organic quaternary ammonium compound having epoxide groups is selected from glycidyl trimethylammonium chloride and/or glycidyl trimethylammonium bromide, and wherein the organic quaternary ammonium compound having halohydrin groups is selected from - (3-chloro-2-hydroxypropyl)trimethylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyloctadecylammonium chloride, - (3-chloro-2-hydroxypropyl)trimethylammonium bromide, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium bromide, - (3-chloro-2-hydroxypropyl)-dimethyloctadecylammonium bromide with - (3-chloro-2-hydroxypropyl)trimethylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium chloride, - (3-chloro-2-hydroxypropyl)dimethyloctadecylammonium chloride, - (3-chloro-2-hydroxypropyl)trimethylammonium bromide, - (3-chloro-2-hydroxypropyl)dimethyldodecylammonium bromide, - (3-chloro-2-hydroxypropyl)-dimethyloctadecylammonium bromide with (ii) a silane or siloxane having amino groups, in the presence of (iii) a branching agent, wherein the branching agent is selected from butanediol diglycidyl ether and/or polypropylene glycol diglycidyl ether, and (iv) a surfactant, wherein the surfactant is selected from ethoxylated alcohols of formula C n H 2n+1 (OCH 2 CH 2) x OH in which n represents numbers of between 8 and 20 and x represents numbers of from 8 to 18, dispersed in (v) an aqueous polar phase,