The disease caused by methicillin-resistant Staphylococcus aureus (MRSA) is a global public health challenge that threatens society and patients seriously. Therefore, the molecular epidemiology and change trend of MRSA is essential for the control and treatment of diseases caused by the pathogen in their regions. To explore molecular epidemiology of MRSA in Hangzhou, we collected 162 MRSA isolates from 2012 to 2018, conducted the antimicrobial susceptibility and used polymerase chain reaction(PCR) to test the molecular typing including multilocus sequence typing (MLST), staphylococcal chromosome cassette mec (SCCmec), staphylococcal protein A (spa A) and Panton-Valentine leucocidin (PVL). All the strains was divided into community-associated MRSA (CA-MRSA) or hospital-associated MRSA (HA-MRSA). 162 MRSA isolates were divided into 16 STs and 30 spa types. The major ST type was ST5 (96/162, 59.3%) and the predominant spa type was t311 (83/162, 51.2%). Five SCCmec types were found and the most common SCCmec type was type II (101/162, 61.7%). ST5-II-t311 was the predominant MRSA clone. And the prevalence of ST5 MRSA gradually declined from 2014 to 2018 but the prevalence of ST59 MRSA significantly increased. At the same time, livestock-associated methicillin-resistant Staphylococcus aureus(LA-MRSA) ST398 and ST9 were detected. Twenty-eight isolates were PVL gene positive (28/162, 17.3%). The most prevalent PVL-positive clone was ST59-IVa-t437. Comparing with HA-MRSA, CA-MRSA had a lower probability of ST5 (9.1% vs 67.1%, P=0.000) but a higher probability of ST59 (63.6% vs 11.4%, P=0.000), not only that, it was more likely to carrying PVL-positive gene (36.4% vs 14.3%, P=0.028). In summary, the molecular types of MRSA were getting complex over time. ST5-II-t311 was the predominant clone of MRSA isolate with a downward incidence from 2014 to 2018. ST59 MRSA strains, which is thought community related strain are spreading into hospitals and has an upward incidence from 2014 to 2018.