About cefalexin Cefalexin is an antibiotic. It belongs to a group of antibiotics called cephalosporins. It's used to treat bacterial infections, such as pneumonia and other chest infections, skin infections and urinary tract infections (UTIs). Cefalexin is only available on prescription.