Land-use change is highly dynamic globally and there is great uncertainty about the effects of land-use legacies on contemporary environmental performance. We used a chronosequence of urban grasslands (lawns) that were converted from agricultural and forested lands from 10 to over 130 years prior to determine if land-use legacy influences components of soil biodiversity and composition over time. We used historical aerial imagery to identify sites in Baltimore County, MD (USA) with agricultural versus forest land-use history. Soil samples were taken from these sites as well as from existing well-studied agricultural and forest sites used as historical references by the National Science Foundation Long-Term Ecological Research Baltimore Ecosystem Study program. We found that the microbiomes in lawns of agricultural origin were similar to those in agricultural reference sites, which suggests that the ecological parameters on lawns and reference agricultural systems are similar in how they influence soil microbial community dynamics. In contrast, lawns that were previously forest showed distinct shifts in soil bacterial composition upon recent conversion but reverted back in composition similar to forest soils as the lawns aged over decades. Soil fungal communities shifted after forested land was converted to lawns, but unlike bacterial communities, did not revert in composition over time. Our results show that components of bacterial biodiversity and composition are resistant to change in previously forested lawns despite urbanization processes. Therefore land-use legacy, depending on the prior use, is an important factor to consider when examining urban ecological homogenization.Supplementary InformationThe online version contains supplementary material available at 10.1007/s00442-023-05389-8.