Cefdinir is an antibiotic used to treat certain infections caused by bacteria. It works by killing the bacteria that cause the infection.