Introduction: Over the past decades, prevalence of biofilm-forming Staphylococcus aureus strains has significantly increased in urinary tract infections. The aim of this study was to investigate prevalence of biofilm forming and adhesion encoding genes and to analyze distribution of different agr and spa types in S. aureus isolates. Methodology: In the present study, 75 S. aureus isolates obtained from patients with urinary tract infections were examined for susceptibility to antimicrobial agents. Adhesion, biofilm, and spa encoding genes were detected by PCR screening; agr types were determined using multiplex PCR. Results: Among the 75 isolates, 72% were biofilm producers and 28% were non-biofilm producers. Notably, the ability to produce biofilm was higher among MRSA strains ompared to MSSA strains. The most prevalent biofilm forming gene was icaD (77.3%), followed by icaA (76%), icaB (57.3%) and icaC (50.7%). Adhesion genes clfA, clfB, fnbB, can, fnbA, ebp and bap were detected in 94.7%, 92%, 68%, 64%, 64%, 60% and 5.3% of the isolates, respectively. The spa types t426 and t7789 were found among the non-MDR isolates. It was found that t790, t084, t7789 and t325 spa types were biofilm producers, while t426 and t1339 spa types were non-biofilm producers. Conclusion: Biofilm encoding genes icaD and spa type t790 and agr type III were the most prevalent factors among MDR biofilm producer isolates. The study emphasized that identification of genes and characterization of molecular types involved in biofilm formation should be considered.