@yamad is right on - Gram stain is a major way of categorizing bacteria. Its worth mentioning what the Gram stain color means.
While not failproof, the Gram stain test reflects a major division of the sorts of cells bacteria, helping to type the bacteria of interest
Gram stain reacts with the peptidogycan to create the purple color. The peptidoglycan is a mesh of carbohydrate (sugar) chains with short peptides attached to them that gives the bacterial wall mechanical strength against osmotic changes in the environment (e.g. large concentrations changes in sugars or salts) and mechanical stresses such as shearing from current.

Gram Negative bacteria have two lipid membranes with peptidoglycan sandwiched in between them while Gram positive bacteria have a single lipid membrane with the peptidoglycan mesh surrounding the membrane, forming an outer coat to the bacteria. There is typically 5-10 times more peptidoglycan by weight in Gram Positive bacteria. As such these two distinct categories of Bacteria is often the first determination used to characterize a bacterium. Again while not without some error, Gram stains reflect a significant cell physiological division in bacteria.
