It is prescribed to treat various types of bacterial infections. It fights against the infection by preventing the growth of microorganisms.