Cefdinir is used to treat certain infections caused by bacteria such as bronchitis (infection of the airway tubes leading to the lungs); pneumonia; and infections of the skin, ears, sinuses, throat, and tonsils. Cefdinir is in a class of medications called cephalosporin antibiotics.