Habitat fragmentation strongly affects the genetic diversity of plant populations, and this has always attracted much research interest. Although numerous studies have investigated the effects of habitat fragmentation on the genetic diversity of plant populations, fewer studies have compared species with contrasting breeding systems while accounting for phylogenetic distance. Here, we compare the levels of genetic diversity and differentiation within and among subpopulations in metapopulations (at fine-scale level) of two closely related Zingiber species, selfing Zingiber corallinum and outcrossing Zingiber nudicarpum. Comparisons of the genetic structure of species from unrelated taxa may be confounded by the effects of correlated ecological traits or/and phylogeny. Thus, we possibly reveal the differences in genetic diversity and spatial distribution of genetic variation within metapopulations that relate to mating systems. Compared to outcrossing Z. nudicarpum, the subpopulation genetic diversity in selfing Z. corallinum was significantly lower, but the metapopulation genetic diversity was not different. Most genetic variation resided among subpopulations in selfing Z. corallinum metapopulations, while a significant portion of variation resided either within or among subpopulations in outcrossing Z. nudicarpum, depending on whether the degree of subpopulation isolation surpass the dispersal ability of pollen and seed. A stronger spatial genetic structure appeared within subpopulations of selfing Z. corallinum potentially due to restricted pollen flow and seed dispersal. In contrast, a weaker genetic structure was apparent in subpopulations of outcrossing Z. nudicarpum most likely caused by extensive pollen movement. Our study shows that high genetic variation can be maintained within metapopulations of selfing Zingiber species, due to increased genetic differentiation intensified primarily by the stochastic force of genetic drift among subpopulations. Therefore, maintenance of natural variability among subpopulations in fragmented areas is key to conserve the full range of genetic diversity of selfing Zingiber species. For outcrossing Zingiber species, maintenance of large populations is an important factor to enhance genetic diversity.