The invention relates to a tableware detergent with an anti-bacterial function. The tableware detergent is prepared by the following raw materials in parts by weight: 5 to 10 parts of sucrose palmitate, 5 to 10 parts of alkyl glycoside, 5 to 10 parts of dodecyl dimethyl betaine, 5 to 10 parts of chitosan, 1 to 5 parts of seconary alkane sulphonate sodium, 0.5 to 2 parts of sodium alginate, 0.5 to 3 parts of sodium sulfate, 0.5 to 3 parts of sodium perborate, 1 to 3 parts of lemon acid, 1 to 3 parts of sodium chloride, 1 to 5 parts of hydroxypropyl methylcellulose sodium, 1 to 5 parts of xanthan gum, 1 to 5 parts of lipase, 0.5 to 1 parts of tea saponin, 0.5 to 2 parts of bactericide, 0.5 to 2 parts of chelating agent, 0.1 to 0.5 part of essence, 5 to 10 parts of glycerin, 5 to 10 parts of ethanol, and 20 to 50 parts of deionized water. The tableware detergent with the anti-bacterial function has the advantages that the detergency is strong, the irritation to skins is avoided, the environment-friendly effect is realized, the inhibition function on various pathogenic bacteria is realized, various food residues and oils can be quickly removed, and the spots of the tableware are avoided after cleaning.