Gentamycin Injection is used to prevent or treat a wide variety of bacterial infections. Gentamicin belongs to a class of drugs known as aminoglycoside antibiotics. It works by stopping the growth of bacteria. is used to prevent or treat a wide variety of bacterial infections. Gentamicin belongs to a class of drugs known as aminoglycoside antibiotics. It works by stopping the growth of bacteria.