The Gram staining method is used to differentiate between Gram-positive and Gram-negative bacteria. It was developed in 1884 by Hans Christian Gram who discovered that certain stains were preferentially retained by bacterial cells. The method involves applying a primary stain, adding a mordant to trap the stain, decolorizing with alcohol or acetone, and counterstaining - bacteria that retain the primary stain are Gram-positive while those that take up the counterstain are Gram-negative. Though a valuable diagnostic tool, not all bacteria can be definitively classified by Gram staining.