AbstractCities are considered hotspots of biodiversity due to their high number of habitats such as ruderal areas, wastelands and masonry works hosting peculiar biocoenoses. Urban biodiversity represents a challenging and paradigmatic case for contemporary ecology and nature conservation because a clear distinction between nature reserves and anthropogenic lands is becoming obsolete. In this context, extensive green roofs may represent suitable habitat for ground-nesting birds and wild plants, providing suitable conditions occur. In this paper, case studies are used to show how existing extensive green roofs can be improved in order to make them function as replacement habitat for endangered ground-nesting birds. The setup of an uneven topography, combined with hay spreading and seed sowing, significantly enhanced the reproductive performance of the northern lapwing (Vanellus vanellus), one of the most endangered ground-nesting birds in Switzerland.