Burnley moved eight points clear of relegation rival Huddersfield Town after an Ashley Barnes winner earned the Clarets a 2-1 victory in a tetchy contest that saw both sides reduced to 10 men.
The host urvived a number of scares before Steve Mounie's first Premier League goal of the season gave it the lead, only for Chris Wood to restore parity five minutes before the interval with his 100th league goal in English football.
There was still time for Christopher Schindler to get sent-off for his second bookable offence before the break but David Wagner's men emerged for the second half with a plan to frustrate Burnley and it worked for almost half an hour.
But, just as Huddersfield sensed its first point in eight matches might be in the offing, Barnes finished a sweeping Burnley move with his fourth league goal of the season and lifted the visitor two points clear of the bottom three, despite Robbie Brady being given his marching orders in the last minute.
The host took the lead after 33 minutes, Isaac Mbenza floating a curling cross to the far post where Charlie Taylor had failed to pick up Mounie and the Beninese striker powered a header beyond Tom Heaton and into the net from close range.
Burnley equalised six minutes later when the lively Dwight McNeil escaped down the left before delivering a low cross that Wood side-footed home from point blank range.
McNeil burst forward as Burnley mounted its next attack but he was brought down by Schindler, who was shown his second yellow card of the evening and left his team-mates to battle on with a one-man disadvantage.
Wood blazed a free header wide at the far post when he met Ashley Westwood's corner early in the second half and Johann Gudmundsson fired straight at Jonas Lossl in a one-on-one as the Clarets probed for a winner.
It arrived in some style, Wood squaring to Ashley Westwood just outside the box and he fed Barnes, who took a touch before sliding a side-footed shot past Lossl from 12 yards.
Brady received a straight red card when he scythed down Mbenza in the dying moments of the game, but Philip Billing fired over the crossbar with the ensuing free-kick and Burnley survived to claim all three points.