Considering the prevalence of resistance to antibiotics, the discovery of effective agents against resistant pathogens is of extreme urgency. Herein, 26 mecA-positive methicillin-resistant S. aureus (MRSA) isolated from clinical samples were identified, and their resistance to 11 antibiotics was investigated. Next, the antibacterial and anti-biofilm activity of the ethanolic extract of M. communis on these strains was evaluated. Furthermore, the effect of this extract on the expression of biofilm-associated genes, icaA, icaD, bap, sarA, and agr, was studied. According to the results, all isolated strains were multidrug-resistant and showed resistance to oxacillin and tetracycline. Also, 96.15 and 88.46 % of them were resistant to gentamicin and erythromycin. However, the extract could effectively combat the strains. The minimum inhibitory concentration (MIC) against different strains ranged from 1.56 to 25 mg/ml and the minimum bactericidal concentration (MBC) was between 3.125 and 50 mg/ml. Even though most MRSA (67 %) strongly produced biofilm, the sub-MIC concentration of the extract destroyed the pre-formed biofilm and affected the bacterial cells inside the biofilm. It could also inhibit biofilm development by significantly decreasing the expression of icaA, icaD, sarA and bap genes involved in biofilm formation and development. In conclusion, the extract inhibits biofilm formation, ruins pre-formed biofilm, and kills cells living inside the biofilm. Furthermore, it down-regulates the expression of necessary genes and nips the biofilm formation in the bud.