Gentamicin is a drug sold under brand names Garamycin only if it has been prescribed by a medical practitioner. It is an antibiotic used to treat several infections that are serious. Infections that are caused by bacteria are treated with gentamicin. It doesn't work for viral or fungal infections.