ABSTRACT Habitat fragmentation is a severe problem that negatively affects forests around the world. This phenomenon has consequences at a genetic level in populations such as genetic diversity and gene flow reduction. As a result, population fitness decreases, and the possibility of extinction increases. Polylepis (Rosaceae) forests are endemic to the Andes and their distribution reflects hundreds of years of human activities. Polylepis microphylla is the most endangered species of the genus in Ecuador and is represented by only two known forests in Chimborazo province, separated from each other by 1,6 km. The present study focused on i) exploring the genetic structure and connectivity, ii) analyzing the genetic diversity patterns in these two forests of P. microphylla. Parameters such as Fixation index, molecular variance (AMOVA) and genetic diversity estimators were calculated from the haplotypic sequences of one chloroplastic DNA region (trnG intron), one nuclear DNA region (ITS), and the concatenation of both. We found that DNA regions used were highly polymorphic with a total of nine, four and thirteen segregation sites, respectively, and nine, six and fifteen haplotypes, respectively. Also, we detected that both forest work as a single population unit due to low fixation index values (Fst = 0,03822, −0,03883 and −0,00469, respectively), which indicate high gene flow between these two forests. In addition, we detected high genetic diversity reflected by haplotype diversity in both forest (hd = 0,54204, 0,63664 and 0,81682, respectively). Likewise, haplotype relationships were visualized in networks, which demonstrated limited spatial structuring between haplotypes, corroborating the low genetic differentiation among these forests. In conclusion, our results suggest there is a single population unit of P. microphylla in Ecuador. Habitat fragmentation does not seem to have negative effects on the genetic diversity of this species. Nevertheless, the species may be vulnerable to rapid environmental fluctuations despite having relatively high genetic diversity. Its long generational time causes increased susceptibility of P. microphylla to environmental changes and may eventually lead to the extinction of the species in Ecuador.