Abstract The study evaluated the microbiological profile of milk samples collected before and after mastitis treatment with gentamicin and investigated biofilms production and antimicrobial susceptibility of Staphylococcus spp. isolated. The presence of gentamicin residues in milk after the recommended withdrawal period was also evaluated. Antimicrobial residues were analyzed by Delvotest® SP NT over a period of 12 days beginning after 24 hours the last gentamicin application. Some of Staphylococcus spp. isolates were biofilm producers (19.05%). Staphylococcus spp. showed high levels of resistance to neomycin (16.95%), penicillin G (10.17%), and ampicillin (10.17%). Multidrug resistance to all antibiotics tested was observed in 1.69% of the Staphylococcus spp. isolates. Among 1440 mammary quarter milk samples 24.95% presented gentamicin residues after the withdrawal period. Gentamicin residues were also detected in 3.8% of samples from calibrated glass recorder jar (n=383) 4.1 days after treatment. The indiscriminate use of antibiotics may lead to the emergence of multidrug-resistant strains as well as increasing the risk of presence of residues of these drugs in milk. These problems affect the milk quality and may become a public health problem.