Dundee United secured a spot in Europe by moving past Aberdeen to claim fourth place in the William Hill Premiership with an impressive 2-1 comeback victory.
Jeppe Okkels, a Danish forward, netted his first goal for Aberdeen since joining on loan from Preston in January, giving his team the lead after 15 minutes as they dominated the match.
Dundee United gradually fought back, and in the 56th minute, defender Declan Gallagher equalized with a header from a corner taken by Glenn Middleton.
Striker Sam Dalby then put Dundee United in the lead with a penalty in the 62nd minute. On the final day of top-six fixtures, Dundee United claimed the fourth spot, earning them a potential qualification for the Europa League. This accomplishment was marked by a pitch invasion by the home fans at the end of the match, celebrating their return to the top flight this season.
Aberdeen could reclaim the European spot if they win the Scottish Cup against Celtic next week, although the likelihood of the champions missing out on another domestic treble is slim.
In another match, St Mirren managed a respectable 1-1 draw with Celtic at Parkhead but finished sixth in the league standings.
Both teams entered the game in poor form, with Dundee United suffering four consecutive losses in post-split matches, and Aberdeen losing their last three games, including a heavy defeat against Celtic.
Despite Aberdeen starting strong and creating early chances, Dundee United goalkeeper Dave Richards denied Pape Gueye's long-range effort early on.
The Dons continued to apply pressure, with midfielder Jamie McGrath hitting the bar before United survived a goalmouth scramble.
Aberdeen eventually took the lead through a goal by Jeppe Okkels, set up by a pass from Alexander Jensen after good work from Graeme Shinnie.
As the game progressed, Dundee United improved their performance, with Sam Cleall-Harding and Vicko Sevelj coming close to scoring before the break.
In the second half, Dundee United threatened with chances from Kristijan Trapanovski and Will Ferry, while Aberdeen's Kevin Nisbet missed a golden opportunity to extend his team's lead.
The momentum shifted in Dundee United's favor as Declan Gallagher equalized with a header before Sam Dalby converted a penalty to put his team ahead.
Despite Aberdeen's efforts to respond, Dundee United held on to secure the victory, with substitute Louis Moult coming close to adding a third goal.