Glastonbury fell Crazy In Love with Beyonce as the American superstar told the 50,000 crowd: "This is my dream."
Arriving on stage 10 minutes late in typically diva-like fashion, a celebrity-packed audience sang along as she started proceedings with Crazy In Love.
The singer appeared silhouetted against a white triangle of light which turned red with a burst of fireworks and called: "Glastonbury, are you ready?"
Wearing a low-cut gold sequinned top, the 29-year-old told the crowd: "I want you all to know right now you're witnessing my dream.
"I want to thank you from the bottom of my heart for having me and my band tonight.
"I always wanted to be a rock star and tonight we are all rock stars.
"I want you to forget about your worries, forget about your troubles. I want you to get lost in this music tonight."
She carried on with Single Ladies, Naughty Girl and Baby Boy, telling the crowd: "I still can't believe I'm performing at Glastonbury ."
The set also included a version of Alanis Morissette's You Oughta Know and there was also a nod to the Eurythmics' Sweet Dreams.
With the set slowing down, she performed a ballad version of Kings of Leon's Sex On Fire.
It was the crowd that took on much of Irreplaceable, Beyonce holding the microphone towards them as they sang back at her.
Beyonce also rattled through a list of Destiny's Child songs including Independent Women, Say My Name and Survivor.
But despite rumours, the other members of her old girl group did not join her on stage.
As she performed At Last, images of US president Barack Obama appeared on the screens behind her.
Her husband Jay-Z was in the crowd along with Coldplay frontman Chris Martin's wife, Gwyneth Paltrow.
The US rapper was a controversial choice when he headlined the festival in 2008 and Beyonce said watching him perform had inspired her to appear .
Beyonce had another fan in Coleen Rooney, who posted a picture of herself with Jay-Z on Twitter.
She told her followers: "Beyonce made Glastonbury for me!!!"
For her last song, Halo, she went down to meet the crowd, a burly security guard covering her every move.