The objective of the Gram staining activity is to differentiate bacterial species into two groups, Gram-positive and Gram-negative, based on the composition of their cell walls. This differential staining technique involves a series of steps including the application of crystal violet, iodine, alcohol decolorization, and counterstaining with safranin.