Cephalexin is use to treat bacterial infections such as pneumonia and other respiratory tract infections, as well as infections of the bone, skin, ears, genital tract, and urinary tract. It can also be use to treat gastrointestinal illnesses. Also, Cephalexin kills bacteria as part of its method of action.