Two nationwide Mycoplasma pneumoniae epidemics occurred in Slovenia between 2006 and 2016. The aim of this study was to assess which M. pneumoniae genotypes were present in our area during the selected timeframe, whether the origin of the epidemics was monoclonal or polyclonal and whether the proportion between detected genotypes changed over time. We were also interested in the presence of macrolide resistance (MR) and whether it could be linked to specific genotypes. We performed pyrosequencing of the P1 gene and multiple-locus variable-number tandem repeat (VNTR) analysis (MLVA) typing from 872 M. pneumoniae isolates obtained from respiratory tract infections (RTI)-suffering patients. Additionally, isolates were tested for the presence of MR implicated mutations in the 23S rRNA gene. The MLVA typing results revealed that three main genotypes, MLVA-3,5,6,2, MLVA-3,6,6,2 and MLVA-4,5,7,2, were constantly present and occasionally joined by less abundant, short-lived genotypes, which were detected mostly, but not exclusively, during epidemics. We also noticed a switch in abundance from MLVA-3,5,6,2 and MLVA-3,6,6,2, which dominated in the first epidemic (77.0%; 97/126), to MLVA-4,5,7,2 (71.6%; 428/598), which dominated in the second. Similar to this finding, the dominant P1 type also shifted from type 2 to type 1, although a complete P1 type shift was not observed, since both types remained in circulation. MR was detected in 0.8% (7/872) of M. pneumoniae isolates. Our results seem to suggest that MR remains sporadic in Slovenia at this point in time and that both recent epidemics were polyclonal in nature and, possibly, to some extent, fuelled by the P1 type dominance change.