Dundee United secured a spot in Europe after overtaking Aberdeen to claim fourth place in the William Hill Premiership following an impressive 2-1 comeback victory.
Jeppe Okkels, a Danish forward, found the net for Aberdeen, his first goal since joining on loan from Preston in January, giving his team the lead after 15 minutes of play.
Declan Gallagher, a defender for United, equalized the score in the 56th minute with a header from a corner taken by Glenn Middleton.
Sam Dalby, a striker, then put United in front with a penalty in the 62nd minute. Ultimately, Jim Goodwin's team finished in fourth place on the final day of top-six fixtures, earning them a potential spot in the Europa League qualifying rounds. The home fans celebrated with a pitch invasion at the end of the match.
Aberdeen still has a chance to reclaim the European spot by winning the Scottish Cup against Celtic, although the likelihood of the champions missing out on another domestic treble is slim.
St Mirren drew 1-1 with Celtic at Parkhead, a commendable result, but it wasn't enough to lift them from sixth place in the table.
Both teams entered the match in poor form, with Dundee United having suffered four consecutive defeats post-split and Aberdeen losing their last three matches, including a heavy 5-1 loss to Celtic.
Dundee United had already secured a European place before the game, and they had an early chance in the 7th minute when Pape Gueye's shot was saved by the Aberdeen goalkeeper.
The away team kept the pressure on, with Jamie McGrath hitting the crossbar from a long-range effort, but Dundee United survived the scare.
Aberdeen took the lead when Alexander Jensen's pass found Jeppe Okkels to score from close range. However, Dundee United fought back, with Dimitar Mitov making a good save to deny Sam Cleall-Harding before Sam Dalby came close with a header.
In the second half, both teams had their chances, but it was Dundee United who capitalized. Kristijan Trapanovski missed a good opportunity with a headed effort, while Kevin Nisbet failed to hit the target from a promising position for Aberdeen.
The momentum shifted towards Dundee United, and Declan Gallagher equalized with a header before Sam Dalby converted a penalty to complete the turnaround.
Despite late pressure from Aberdeen, Dundee United held on for a crucial victory, securing their place in Europe for the upcoming season.