Iberian gypsum outcrops are highly fragmented and ecologically challenging environments for plant colonization. As gypsophytes occur exclusively in such habitats, they are ideal models for the study of both the effects of habitat fragmentation and selection on population genetic diversity and structure. In this study, we used amplified fragment length polymorphism (AFLP) and plastid DNA sequences to investigate the phylogeographical history of the Iberian plant Gypsophila struthium (Caryophyllaceae), a widespread endemic restricted to Iberian gypsum outcrops. Gypsophila struthium consists of two subspecies that differ in the architecture of their inflorescence and have mostly allopatric ranges. Gypsophila struthium subsp. struthium occurs in central, eastern and south‐eastern Iberia, whereas G. struthium subsp. hispanica occurs in northern and eastern areas. AFLPs revealed low but significant genetic differentiation between the subspecies, probably as a result of a recent diversification during the Pliocene–Pleistocene. In the geographical contact zone between the taxa, the Bayesian analyses revealed populations with mixed ancestries and genetic clusters predominantly of one or the other subspecies, indicating incomplete reproductive barriers between them. Plastid DNA haplotypes revealed strong geographical structure and testified to processes of isolation by distance and continuous range expansion for some haplotype clades. The Bayesian analyses of the population structure of AFLP data and nested clade phylogeographical analysis (NCPA) of plastid haplotypes revealed that the putative ancestral range corresponded to central and eastern populations of G. struthium subsp. struthium, with those lineages contributing through more recent expansion to increased genetic diversity and structure of the south‐eastern and eastern ranges of this subspecies and to the diversification of G. struthium subsp. hispanica in northern and eastern gypsum outcrops. © 2013 The Linnean Society of London, Botanical Journal of the Linnean Society, 2013, 173, 654–675.