Gram staining is a common technique used to differentiate between Gram positive and Gram negative bacteria based on their cell wall composition. Hans Christian Gram developed the technique in 1884 to classify bacteria. Gram positive bacteria retain the primary crystal violet stain due to their thick peptidoglycan cell wall, appearing violet or purple under a microscope. Gram negative bacteria's thinner peptidoglycan wall does not retain the crystal violet and takes up the secondary safranin stain, appearing red. The Gram stain technique uses crystal violet, iodine, decolorizer, and safranin reagents and is widely used to identify bacteria from clinical samples.