U2 have played a surprise gig from the balcony of Bewley’s on Dublin’s Grafton Street as the band marked 50 years together.

A packed crowd gathered below on Friday evening as the Dublin rockers played a set spanning their five-decade career.

They opened with I Will Follow, followed by Out of Control and One, before playing Where the Streets Have No Name and With or Without You.

The band also performed their new single Silencio, from their forthcoming album Carnaval de Luz.

There was a poignant moment as U2 paid tribute to the late Glen Hansard with a performance of Falling Slowly, the song Hansard co-wrote with Markéta Irglová for the film Once.

Hansard, who died in July, had a long association with Grafton Street and was closely associated with the annual Christmas Eve charity busk in Dublin city centre.

Beautiful Day was also among the songs performed during the balcony set.

The performance came just hours after U2 returned to their former school, Mount Temple Comprehensive in Dublin, for another surprise gig in front of students and staff.

Friday marks 50 years to the day since the musicians who would become U2 first rehearsed together at Larry Mullen Jr’s family home in Artane on 25 September 1976.