Hibernian guaranteed the "incredible achievement" of third place in the Scottish Premiership and Europa League football despite spurning a two-goal lead at St Mirren, who maintained their own European hopes.
The Leith side looked likely to leave with all three points after a whirlwind start, with Martin Boyle and Mykola Kuharevich both scoring inside the opening 10 minutes.
Boyle could have had Hibs even further ahead in front of a raucous travelling support had Zach Hemming not denied the Australian international when he was clean through on goal.
St Mirren hung in, though, and halved the deficit with the last kick of the first half. Richard Taylor smashing home inside the box after a Killian Phillips free-kick.
The comeback was complete midway through the second half when Roland Idowu's cross was expertly turned in by Conor McMenamin, who almost won the match late on but watched his shot superbly thwarted by Hibs keeper Jordan Smith.
Before that save, St Mirren thought they had a third goal when Mikael Mandron rolled the ball into an empty net with Smith stranded.
However, Chris Graham pulled play back to the halfway line for a Hibs free-kick much to the fury of home manager Stephen Robinson, who was booked for his protests. His frustrations didn't ease when a Greg Kiltie effort came back off a post.
Had they won, St Mirren would have moved up into fifth - the final European place - but now need to get something at Celtic Park on Saturday and hope Dundee United lose at home to Aberdeen.
Hibs, though, can go into their final game with Rangers knowing they will be in Europe next season.
"When you think back to how the season's gone, the start we made, finding ourselves at the bottom of the league... the players have given me absolutely everything," manager David Gray told BBC Scotland.
"The hard work, the dedication, the commitment, the togetherness, all the things you need for a successful team. I'm delighted for the players, and I'm delighted for the club because I think they deserve it."