Boro took a first-half lead after an own goal from goalkeeper David Raya, yet Ivan Toney equalised for Brentford before half-time.
The Teessiders had chances to retake the lead but fell behind when Vitaly Janelt volleyed the ball home on 58 minutes.
Goals from Mathias Jensen and another from Toney then secured the points for Thomas Frank’s side who have now gone 20 league games without a defeat.
Boro handed a debut to new signing Neeskens Kebano who joined the club on a season-long loan from Fulham on transfer deadline day.
Yannick Bolasie also kept his place in the starting XI to make his home debut for the Teessiders.
Our writer Joe Nicholson has dished out his marks from the match – scroll down and flick through the pages to see them:

9. Patrick Roberts - 6
Operated in the No 10 position but struggled to have a major impact on the game. Saw a low second-half effort saved. 6 Photo: Getty Images

10. Marcus Tavernier - 6
Saw more of the ball in the second half but was a little wasteful in the final third. 6 Photo: Alex Burstow

11. Chuba Akpom - 7
Made some good runs off the ball to stretch the Brentford defence but couldn’t beat goalkeeper Luke Daniels. 7 Photo: Getty Images

12. Sam Folarin - 7
(for Browne, 45) Scored his first goal for the club after arriving late at the far post. 7 Photo: JPiI Media

