This medication is used along with regular tooth brushing/flossing to treat gingivitis, a gum disease that causes red, swollen, and easily bleeding gums. Chlorhexidine belongs to a class of drugs known as antimicrobials. It works by decreasing the amount of bacteria in the mouth, helping to reduce swelling and redness of the gums and bleeding when you brush.