Vincent Kompany's Burnley secured promotion back to the Premier League at the first attempt with victory over fourth-placed Middlesbrough.
The Clarets, unbeaten in the league since November, took an early lead when Ashley Barnes redirected Josh Brownhill's low shot into the back of the net.
The home side equalised just after half-time when Championship top scorer Chuba Akpom scored from the spot after Josh Cullen felled Cameron Archer in the penalty area.
Connor Roberts steered in the winner from Nathan Tella's near-post cross and Kompany's men saw out the rest of the game in comfort to spark wild celebrations on the pitch and among their travelling fans.