ContextThe spatial distribution of plant diversity in urban areas is fundamental to understanding the relationship between urbanization and biodiversity. Previous research has primarily focused on taxonomic levels to assess species richness. In contrast, investigations into the spatial patterns of phylogenetic diversity in urban plants remain limited.ObjectivesThis study aims to investigate the spatial patterns of plant phylogenetic diversity along an urban–rural gradient and quantify how phylogenetic diversity and the degree of urbanization are related.MethodsA survey of vascular plants was conducted at 134 randomly selected sample plots along four urban–rural transects in Shanghai, China. Three phylogenetic diversity metrics were calculated: Faith’s phylogenetic diversity (PD), net relatedness index (NRI), and net nearest taxon index (NTI), along with the urbanization degree index (UDI). Regression analysis was employed to quantify the spatial patterns of plant phylogenetic diversity across different taxa along the urban–rural gradients and their relationships with UDI.ResultsThe study observed seven distinct patterns of plant phylogenetic diversity along the urban–rural gradients in different taxa, which support the previous hypotheses that biological distribution patterns at the species level also hold true at the phylogenetic level. Faith’s phylogenetic diversity (PD) showed a linear increase with increasing UDI for total, woody, perennial, and cultivated plant assemblages. The UDI explained 3–36% of the variation in PD for these taxa. In contrast, PD for annual and spontaneous plants exhibited a linear decrease with increasing UDI, which explained 25% and 3% variation in PD for annual and spontaneous plants, respectively. The net relatedness index (NRI) for woody, perennial, and cultivated plants, as well as the net nearest taxon index (NTI) for perennial and cultivated plants, linearly increases with UDI, whereas the NRI for total, annual, and spontaneous plants, as well as NTI for total, woody, annual, and spontaneous plants linearly decrease with UDI. However, some of these trends were only marginally significant.ConclusionsThe spatial patterns of plant phylogenetic diversity varied along the urban-to-rural gradients, indicating that urban environmental filtering has an impact on plant phylogenetic diversity. Urbanization increased the phylogenetic richness of different plant taxa in Shanghai but resulted in more clustering and relatedness of species within plant assemblages. Phylogenetic richness exhibited a linear increase with UDI, while the phylogenetic divergence decreased with UDI. The UDI is a useful predictor for examining variations in plant phylogeny due to urbanization. Our findings provide insights into how urbanization impacts plant phylogenetic diversity, helping urban plant diversity conservation.