It is a cephalosporin antibiotic. Cephalexin 500mg works and fights bacteria in the body. It treats allergic reactions caused by bacteria. These are skin rashes, infections, and ear infections. It includes upper respiratory tract infections. Bone infections and urinary tract infections are the other treated infection.