The rocker and his group headlined Radio 1's Big Weekend event in Norwich, England and they took to the stage an hour after Swift played a short set at the festival.

Prior to playing a track called Congregation, which they wrote in Swift's former home of Nashville, Tennessee, Grohl told the crowd, "I've done some weird things in my life but I've never before said that Taylor Swift is my opening act... Taylor motherf**king Swift... This one is dedicated to Taylor Swift."

He went on to dedicate two more songs to the star throughout the show, adding, "My kids would kill me if they found out (Swift was our opening act)... I'm officially obsessed, she might want to get a restraining order... To my opening band, Taylor Swift. Taylor and the Swifts."

The Foo Fighters are due to headline Britain's Glastonbury Festival in June (15).

Other acts to perform on the closing day of Radio 1's Big Weekend on Sunday included Rita Ora, Imagine Dragons, and Catfish and the Bottlemen, who were bumped up the bill to fill in for pop singer Sam Smith, who pulled out of the event after undergoing throat surgery.