This is used to separate bacteria into gram-positive and gram-negative bacteria. Crystal violet is applied first to a bacterial specimen, then iodine, which fixes the dye, and then the slide is washed with alcohol. Gram-positive bacteria retain the dye while gram-negative lose it as they have thinner cell walls.