Bacteria can be classified into two main groups based on their cell walls: Gram-positive bacteria have thicker cell walls with multiple layers of peptidoglycan, while gram-negative bacteria have thinner cell walls with an outer membrane containing lipopolysaccharides (LPS).