Rotherham United ended their six-season stay in npower League 2 and condemned Aldershot Town to non-league football next season with their 2-0 win at New York Stadium.
Johnny Mullins broke the deadlock from close range in the 64th minute before Lee Frecklington scored the Millers' second in injury time to seal promotion to the third tier.
Defeat for Aldershot meant they were unable to bridge the gap to safety and drop out of the Football League along with Barnet, who were beaten 2-0 by Northampton Town. Goals by Roy O'Donovan and Luke Guttridge for the Cobblers doomed Barnet, who were relegated thanks to their poorer goal difference than Dagenham and Redbridge, who also finished the season with 51 points.
York City, who had for some time to be staring into the abyss, ended their campaign on a high with a 1-0 away win over Dagenham and Redbridge, Chris Smith scoring the only goal.
AFC Wimbledon, who had been in the drop zone at the start of the day, escaped following their 2-1 win over Fleetwood Town, while Torquay United were another side in danger of relegation but Aldershot and Barnet's defeats and their 3-3 draw against Bristol Rovers saw them to safety.
Elsewhere, Cheltenham Town drew 0-0 against 10-man Bradford City, who lost Andrew Davies midway through the second half, while Lee Hughes' goal for Port Vale cancelled out Dean Morgan's penalty for Wycombe Wanderers as they drew 1-1 to secure their automatic promotion.
Chesterfield finished just outside of the Play-Off places despite their 4-0 win over Exeter City. Goals by James O'Shea and Marc Richards, plus a brace for Jack Lester in the final game of his career saw Chesterfield finish on a high and end up two points adrift of Bradford.
Play-Off-bound Burton Albion beat champions Gillingham 3-2 at the Pirelli Stadium.
Morecambe beat Southend United 1-0 thanks to Andrew Fleming's first-half goal and Rochdale beat 10-man Plymouth Argyle 1-0, with Joe Bunney's header midway through the second half the difference after Maxime Blanchard saw red in the 15th minute.
Oxford United beat Accrington Stanley 3-0 with Accrington midfielder Lee Molyneux shown a red card one minute before the final whistle. James Constable, Deane Smalley from the penalty spot and Sean Rigg scored the goals for Oxford.
QUICK LINKS: RESULTS | TABLES | LINE-UPS | STATS | FIXTURES