Green roofs are potentially valuable habitats for plants and animals in urban areas. Wild bees are important pollinators for crops and wild plants and may be enhanced by anthropogenic structures, but little is known about wild bees on green roofs in cities. This study investigates the effects of green roof qualities (floral resources, substrate character and depth, roof height and age) on wild bee diversity, abundance and traits (nesting type, sociality, pollen specialisation, body size) on green roofs in Vienna. Nine green roofs were sampled monthly between March and September 2014 by a semi quantitative approach. Wild bees were collected in pre-defined sub-areas for the same amount of time and floral resources were recorded. Over all green roofs, 992 individuals belonging to 90 wild bee species were observed. Wild bee diversity and abundance was strongly positively affected by increasing forage availability and fine substrates. Wild bees on roofs were characteristically solitary, polylectic and 8.3-11.2 mm. Regarding nesting type, the percentage of above-ground nesting bees was higher compared to the common species composition in Middle Europe. Ground-nesting wild bees were mainly eusocial, smaller (6.4-9.6 mm) and positively affected by roofs with fine substrates. During June, when forage availability by wildflowers on roofs was Blow^(5-15% flower coverage), flowering Sedum species were an important forage resource. We conclude that wild bee diversity and abundance on green roofs are enhanced by floral resources. Furthermore, the installations of areas with finer and deeper substrates benefit ground nesting and eusocial wild bees.