Cephalexin is an antibiotic that inhibits bacterial cell wall synthesis, leading to cell lysis and death. It is effective against many Gram-positive and some Gram-negative bacteria. Its common indications include skin infections, respiratory tract infections, otitis media, and urinary tract infections.