A disinfecting composition comprises chitosan and peroxycarboxylic acid. The weight ratio of chitosan to peroxycarboxylic acid is from 0.01-100. Chitosan is selected from the group consisting of amino monosaccharide, acetylamino monosaccharide, chitooligosaccharide, chitosan polymer and the combination thereof, and peroxycarboxylic acid is a C1-C18 aliphatic peroxycarboxylic acid that is selected from the group consisting of peroxy monocarboxylic acid, peroxy dicarboxylic acid and the combination thereof.