Urban areas are major contributors to air pollution and climate change, causing impacts on human health that are amplified by the microclimatological effects of buildings and grey infrastructure through the urban heat island (UHI) effect. Urban greenspaces may be important in reducing surface temperature extremes, but their effects have not been investigated at a city-wide scale. Across a midsize UK city we buried temperature loggers at the surface of greenspace soils at 100 sites, stratified by proximity to city centre, vegetation cover and land-use. Mean daily soil surface temperature over 11 months increased by 0.6 °C over the 5 km from the city outskirts to the centre. Trees and shrubs in non-domestic greenspace reduced mean maximum daily soil surface temperatures in the summer by 5.7 °C compared to herbaceous vegetation, but tended to maintain slightly higher temperatures in winter. Trees in domestic gardens, which tend to be smaller, were less effective at reducing summer soil surface temperatures. Our findings reveal that the UHI effects soil temperatures at a city-wide scale, and that in their moderating urban soil surface temperature extremes, trees and shrubs may help to reduce the adverse impacts of urbanization on microclimate, soil processes and human health.