A late comeback saw Peterhead avoid automatic relegation from Scottish League One and condemned Stenhousemuir to the drop.
Peterhead started the day bottom of the table, but recovered from 2-1 down to beat Alloa 3-2.
That left Stenhousemuir needing a win, but they could only draw 1-1 with Brechin.
Iain Flannigan gave Alloa a 29th-minute lead with a low effort from 12 yards, but Rory McAllister equalised eight minutes after half-time.
Adam Martin restored Alloa's advantage on the hour mark, but with relegation...