Gram staining is a differential staining technique that classifies bacteria as Gram positive or Gram negative based on whether they retain or lose the primary stain, crystal violet, after treatment with a decolorizing agent like alcohol. The difference is based on cell wall composition - Gram negative bacteria have a thinner peptidoglycan layer and higher lipid content, making their cell wall more porous. The Gram staining procedure involves staining with crystal violet, iodine as a mordant, alcohol as a decolorizer, and safranin as a counterstain. Gram positive bacteria retain the crystal violet stain while Gram negative bacteria take up the safranin counterstain, appearing purple or pink under a microscope respectively. Es