Green spaces can help to keep cities cooler in hot weather and reduce inequalities between neighbourhoods with different income levels and ethnicities.