Growing city populations and limited space are driving the adoption of green roofs and green walls covered with living plants. As well as boosting biodiversity, green roofs could play another unexpectedly valuable role by increasing the electricity output of solar panels.