Cephalosporins are β-lactam antibiotics that inhibit bacterial cell wall synthesis and are classified into five generations based on their spectrum and uses. They are utilized to treat various infections such as urinary tract infections, meningitis, and pneumonia, with differing resistance to β-lactamase enzymes across generations. Common side effects include hypersensitivity reactions, nephrotoxicity, and potential interactions with other medications.