Quaternary ammonium salts of chitosan, such as N,N,N-trimethylchitosan, N-propyl-N,N-dimethylchitosan and N-furfuryl-N,N-dimethylchitosan were shown to be effective in inhibiting the growth and development of Escherichia coli, especially in acidic media.