Clindamycin Belongs to the class of medications called antibiotics. It is used to treat infections caused by certain types of bacteria. It is also used before dental procedures or surgery to prevent infections in people who have heart conditions that put them at greater risk of infection.