Match ends, Bristol City 1, Middlesbrough 0.
Wes Burns headed an injury-time winner as managerless Bristol City defeated Championship leaders Middlesbrough.
City are now only in the relegation zone on goal difference while Boro's lead at the top is cut to two points.
Aden Flint headed against the bar moments earlier while Aaron Wilbraham's follow-up was cleared.
City were not to be denied as Flint and Burns scrambled in a stoppage-time corner to earn their fifth win of the season and do the double over Boro.
The goal brought to an end Boro's run of nine consecutive clean sheets as they also missed the opportunity to set a Football League record.
City, who sacked manager Steve Cotterill on Thursday, had John Pemberton and Wade Elliott leading the side.
The club also unveiled former Oxford United chief executive Mark Ashton as their new chief operating officer before the game.
Kike sent an early shot wide for Boro while Dimitrios Konstantopoulos saved well from City forward Burns.
Jonathan Kodjia's weak shot was kept out and Luke Ayling's header tipped over by Konstantopoulos while Albert Adomah lobbed over the bar for Boro.
The game looked to be heading for a draw before Burns diverted Flint's late header past the Boro keeper.
Joint interim Bristol City manager John Pemberton:
"The feeling in the dressing room was one of relief.
"It has been a very difficult week because we lost a good man and a good manager.
"The response from the players was unbelievable and we fully deserved to win.
"We had only one day to work with the players and tried to keep things as simple as possible."
Middlesbrough head coach Aitor Karanka:
"It was a late goal, but it could have come five or 10 minutes earlier because we couldn't clear our box in the closing stages.
"We knew it would be a tough game and that Bristol were dangerous from set pieces, but I expected much more from my players.
"We didn't deserve to win because we didn't play in our usual way and our key players did not perform as they can.
"It was a poor performance. Sometimes there is more pressure for the players in facing a struggling side than in big games and we didn't deal with it today."
- 5AylingBooked at 56mins
- 17BakerSubstituted forLittleat 90+4'minutes
- 3WilliamsSubstituted forWagstaffat 71'minutes
- 20BurnsBooked at 80mins
- 22KodjiaSubstituted forWilbrahamat 80'minutes
- 5AmorebietaBooked at 73mins
- 8ClaytonBooked at 62minsSubstituted forForshawat 88'minutes
- 9KikeSubstituted forNugentat 64'minutes
- 10De Pena
- 23Sola Clemente
- Carl Boyeson
- Shots on Target
Second Half ends, Bristol City 1, Middlesbrough 0.
Goal! Bristol City 1, Middlesbrough 0. Wes Burns (Bristol City) header from very close range to the high centre of the goal. Assisted by Aden Flint following a corner.
Corner, Bristol City. Conceded by George Friend.
Attempt blocked. Marlon Pack (Bristol City) left footed shot from the centre of the box is blocked. Assisted by Wes Burns.
Attempt blocked. Joe Bryan (Bristol City) left footed shot from outside the box is blocked. Assisted by Scott Wagstaff.
Attempt blocked. Scott Wagstaff (Bristol City) left footed shot from outside the box is blocked.
Substitution, Bristol City. Mark Little replaces Nathan Baker because of an injury.
Corner, Bristol City. Conceded by Grant Leadbitter.
Delay over. They are ready to continue.
Delay in match Nathan Baker (Bristol City) because of an injury.
Corner, Bristol City. Conceded by Adam Forshaw.
Aden Flint (Bristol City) hits the bar with a header from very close range following a set piece situation.
Foul by Adam Forshaw (Middlesbrough).
Aaron Wilbraham (Bristol City) wins a free kick in the attacking half.
Dangerous play by David Nugent (Middlesbrough).
Korey Smith (Bristol City) wins a free kick in the defensive half.
Substitution, Middlesbrough. Adam Forshaw replaces Adam Clayton.
George Friend (Middlesbrough) wins a free kick in the defensive half.
Foul by Wes Burns (Bristol City).