According to the population genetics theory, population subdivision helps organisms retain genetic diversity, crucial for adaptation in a changing environment. Habitat shape is thought to be important for generating and maintaining population subdivision, but empirical cases are needed to test this assumption. We studied Saimaa ringed seals, land-locked in a labyrinthine lake and recovering from a drastic bottleneck, by whole-genome sequencing 105 individuals and additional individuals from three other ringed seal subspecies. We analyzed the distribution of variation and the genetic relatedness among the individuals in relation to the habitat shape. Despite a severe history of a genetic bottleneck with prevalent homozygosity in Saimaa ringed seals, we found evidence for population structure mirroring the subregions of the lake. Highlighting the significance of habitat connectivity in conservation biology and the power of genomic tools in understanding its impact, the genome wide analyses showed the subpopulations to have retained unique variation and largely complementary patterns of homozygosity, giving hope to this endangered species.