Arctic Monkeys have brought the final T In The Park at Balado airfield to a close.
After 18 years, the festival is moving site due to safety concerns over an oil pipeline which runs underneath.
Around 85,000 people attended Scotland's largest festival over the weekend.
Biffy Clyro and Calvin Harris were the event's Friday and Saturday headliners. Sunday's bill saw sets from Jake Bugg, Bastille, Kodaline and Tinie Tempah.
Arriving on stage during sunset, the Arctic Monkeys kicked their set off with three singles from their most recent album AM.
They raced through Do I Wanna Know?, Snap Out Of It and Arabella.
That led into the likes of Brianstorm, I Bet You Look Good On The Dancefloor and 505, before an encore ending with R U Mine?
On the Radio 1 stage, Disclosure brought regular collaborators Sam Smith, Eliza
Doolittle and Aluna Francis from AlunaGeorge on for their set.
Bastille performed on the main stage earlier in the afternoon, ending their set with what's becoming a regular staple of festival sing-alongs, Pompeii.
Speaking to Newsbeat backstage, lead singer Dan Smith said that he hoped people would come along to watch them.
"It's quite exciting and mildly terrifying.
"It's mad that we're on the main stage. Last year we were on the Radio 1 stage, which is hardly small.
"We've been doing a very long run of festivals so this is the last one. But only for about a week."
London Grammar had been due to play the Radio 1 stage but had to pull out after lead singer Hannah Reid lost her voice.
They were replaced by Chvrches, who'd already played the King Tut's tent on Friday.
The band also did a surprise gig at the BBC Introducing stage, meaning they played three times in total.
Next year, the festival is moving to Strathallan Castle in Perthshire after "substantial" concerns were raised by health and safety inspectors about an oil pipeline which runs underneath the site, near Kinross.
Speaking before the start of the day, Geoff Ellis, the festival organiser, said: "Today will be emotional but with our line-up and atmosphere, I know we'll say bye to Balado in style."
The day started warm and sunny, after Saturday's grey skies and downpours.
Police Scotland said arrest figures were down on last year, with a total of 38 by Sunday evening.
"We're delighted that the vast majority of those attending T in the Park have behaved and enjoyed themselves, " said Chief Supt Kevin Lynch, the Event Day Commander,
" The crime figures have remained low throughout the event thanks to the positive work by all the agencies involved."
By Sunday there had been 858 people who had gone to the hospital tent, according to the onsite medical team, "mainly for ailments and weather related issues".