The Gram staining method was developed by Hans Christian Gram to differentiate between bacterial species. It divides bacteria into two groups - Gram positive and Gram negative - based on differences in their cell wall structure that determine whether they retain or release a purple crystal violet dye. Gram positive bacteria have a thick peptidoglycan cell wall that retains the dye, appearing purple under a microscope. Gram negative bacteria have a thinner peptidoglycan layer and an outer membrane, causing them to appear pink after a counterstain is applied. The Gram staining procedure involves applying and rinsing with crystal violet, iodine, decolorizer, and safranin solutions to visualize these differences between bacterial cell wall structures.