We are experiencing the sixth mass species extinction globally, resulting in an ongoing biodiversity crisis caused first of all by anthropogenic land-use change, such as urbanisation and associated habitat loss and degradation. It is urgent to explore how the ever-expanding cities could be part of biodiversity loss mitigation to combat the biodiversity crisis. In this chapter, we review the role of urban gardens, such as allotments, community gardens and urban farms, in biodiversity conservation by highlighting a few case studies globally. Although most chapters in this book focus on ‘crisis gardening’ in terms of direct human benefits to combatting an acute crisis (e.g. stress relief during a pandemic), we present how urban gardening practices may contribute to combatting the global biodiversity crisis through habitat provision for various plant and animal species in a concrete matrix. Depending on the taxon, these urban refuges can harbour more species than other urban green spaces like vacant lots, parks, remnants of natural habitats and even exurban habitats. Here, we demonstrate both landscape- and local-scale characteristics that shape biodiversity patterns in urban green spaces and determine the conservation capacity of urban gardening sites. With smart urban planning, cities could provide refuge habitats and support substantial amounts of organisms that could mitigate the ongoing biodiversity crisis.