In the heart of Tshwane, South Africa, there used to be an illegal dumpsite. Now, vegetables, fruit and herbs grow there. The space, called Moja Gabedi, also has ponds that cool the surrounding neighborhood — and it feeds people recovering from drug addiction at a nearby transitional shelter.

That transformation is at the center of new research from a team of town planners and architects who studied how parks, squares and community gardens help South African cities deal with climate change. They focused on three public spaces in Tshwane, South Africa's fourth largest city by population, to understand how good design can make neighborhoods greener, safer and better able to handle hotter weather and heavy rain.

What they found was encouraging. These spaces do more than just look nice. They help cities adapt to climate change by lowering temperatures, providing cool places during heat waves and reducing flooding. But they also do something equally important: they bring people together and strengthen community bonds.

Tshwane is projected to become increasingly hotter and drier in the coming years, the researchers noted, while also facing growing pressure from people moving from rural areas into the city. That makes finding smart ways to adapt more urgent than ever.

The first case study, Moja Gabedi, was rehabilitated and began urban farming in 2020. Beyond providing fresh food for people recovering from addiction, the highly vegetated space with its cooling ponds supports the social reintegration of vulnerable residents. Psychological and social services operate there too.

The second space, Muckleneuk Commons, is a small community park built along a central walking route used by commuters heading to and from work. It includes a drinking fountain, a central gathering area and an iconic sculpture surrounded by indigenous plants — giving walkers a place to rest and connect.

The third, Burgers Park, is the oldest of the three. Established in 1874 when the city was still called Pretoria, it was the city's first botanical garden. Today it remains a vital refuge for many users, including unhoused community members, though the researchers found that local residents could be more involved in running it.

Across all three spaces, one lesson stood out: the most effective public spaces for climate adaptation are created with communities, not just for them. When residents help design and maintain these spaces, they tend to evolve alongside changing climates and shifting needs — and people feel a deeper sense of ownership and responsibility.

The researchers hope their findings help city planners and communities see parks and gardens as more than amenities. They are tools for resilience — places where cities can breathe, cool down and bounce back, one garden at a time.