Kilmarnock will face Dundee in the play-off final despite a 2-0 win at Hamilton which officially relegated Accies from the Scottish Premiership.
A first-half double from Mitch Pinnock gave the visitors a last-day victory although he passed up on the chance of a hat-trick when debutant Hamilton goalkeeper Jamie Smith saved his second-half penalty.
Ross County needed just a point at Motherwell to ensure safety and emerged with 2-1 win.
Accies’ relegation was confirmed after the nine-goal win they needed to leapfrog the Rugby Park side unsurprisingly failed to materialise.
After seven years in the top flight, boss Brian Rice will reset in the summer and go again.
Kilmarnock, though, still have their future in their own hands and Tommy Wright’s team, who finished in 11th place, will travel to Dens Park on Thursday with the second leg at Rugby Park on the following Monday.
Accies’ fate was effectively sealed with the 2-1 defeat at Ross County on Wednesday night.
Rice made five changes, handing starts to Ben Stirling, Kyle Munro, Ronan Hughes, Lewis Smith and 19-year-old ‘keeper Jamie Smith – one of seven academy players starting.