Climate-related changes have a severe impact on wetland ecosystems and pose a serious challenge for wetland-dependent animals as their preferred habitats decline, lose spatial continuity, and appear as isolated islands in the landscape. In this paper, we studied the effects of long-term habitat changes (drying out and fragmentation of wet non-forest habitats) on the genetic structure of the population of the root vole Microtus oeconomus, a species preferring moist habitats. We intended to check what barriers and what distances affected its genetic isolation on a local scale. The study was conducted in the area of Kampinoski National Park in central Poland (Europe). DNA variability of 218 root vole individuals was assessed by genotyping nine microsatellite loci. Despite its spatial fragmentation, the studied population did not seem to be highly structured, and isolation through distance was the main differentiating factor. Even a distance of several kilometres of unfavourable natural habitats and unfavourable terrain did not exclude the exchange of genes between subpopulations. Our results suggest that the genetic effects of the fragmentation of wetlands have been considerably compensated (delayed) due to the migratory abilities of this species. Our study does not provide clear results on the impact of anthropogenic barriers but suggests that such barriers may have a much stronger effect than natural barriers.