Large‐scale patterns of biodiversity and formation have garnered increasing attention in biogeography and macroecology. The Qinghai‐Tibet Plateau (QTP) is an ideal area for exploring these issues. However, the QTP consists of multiple geographic subunits, which are understudied. The Kunlun Mountains is a geographical subunit situated in the northern edge of the QTP, in northwest China. The diversity pattern, community phylogenetic structures, and biogeographical roles of the current flora of the Kunlun Mountains were analyzed by collecting and integrating plant distribution, regional geological evolution, and phylogeography. A total of 1911 species, 397 genera, and 75 families present on the Kunlun Mountains, of which 29.8% of the seed plants were endemic to China. The mean divergence time (MDT) of the Kunlun Mountains flora was in the early Miocene (19.40 Ma). Analysis of plant diversity and MDT indicated that the eastern regions of the Kunlun Mountains were the center of species richness, endemic taxa, and ancient taxa. Geographical origins analysis showed that the Kunlun Mountains flora was diverse and that numerous clades were from East Asia and Tethyan. Analysis of geographical origins and geological history together highlighted that the extant biodiversity on the Kunlun Mountains appeared through species recolonization after climatic fluctuations and glaciations during the Quaternary. The nearest taxon index speculated that habitat filtering was the most important driving force for biodiversity patterns. These results suggest that the biogeographical roles of the Kunlun Mountains are corridor and sink, and the corresponding key processes are species extinction and immigration. The Kunlun Mountains also form a barrier, representing a boundary among multiple floras, and convert the Qinghai‐Tibet Plateau into a relatively closed geographical unit.