Inverness Caledonian Thistle were relegated from the Scottish Premier League after losing their final game of the season 1-0 to fellow strugglers Falkirk.
Caley, managed by Scotland assistant coach Terry Butcher, kicked off one point and one place above the relegation zone and knew that a draw against bottom of the table Falkirk would ensure their survival. However, Ross Tokely was sent off in the first half at Caledonian Stadium and Falkirk's Michael Higdon scored the second half winner that rescued the visitors and sent Caley down on goal difference.
Richie Foran should have given the hosts the lead after 12 minutes only to be denied by a magnificent save from Dani Mallo. Caley enjoyed the better chances of the half but were reduced to 10 men just before the break when Tokely was dismissed for a professional foul on Steve Lovell.
Falkirk took advantage of the extra man when Higdon turned home Jackie McNamara's cross after 68 minutes to ensure the Bairns remained in the top flight.
St Mirren retained their top-flight status despite losing 1-0 to Hamilton. Accies defender Simon Mensing headed the visitors in front from Brian Easton's 28th minute corner. Although St Mirren couldn't get an equaliser they stayed up because their goal difference was two goals better than Inverness's.
Mehdi Taouil scored in the last minute to give Kilmarnock a 2-1 victory at Motherwell. Brian McLean looked to have earned Motherwell a point with a cool finish with 10 minutes left to cancel out Danny Invincibile's opener. However, Taouil saved one of the best moments of Killie's season for the last minute with a jinking run and finish.
Rangers can win the Scottish title for the first time in four years if they beat Dundee United on Sunday. If Walter Smith's team draw or lose, Celtic can retain the title with victory over Hearts.