Cefixime is used to treat respiratory tract infections and urinary tract infections (UTIs). It works by inhibiting the formation of bacterial cell walls, which are essential for their survival, thereby reducing the number of bacteria and helping the body fight the infection.