Back
The 88th-minute strike came in fortunate circumstances after a Marc Guehi clearance cannoned off City team-mate Ruben Dias and into the path of the Brazilian to tap in from three yards out.
In an even game, City were largely the better side from open play in the first period, and took the lead through Erling Haaland's penalty just before half-time after Nico O'Reilly was caught by Jaidon Anthony.
It was a deserved advantage and came after Enzo Maresca's side had often been brilliant until they reached the penalty area, where their final ball or finish let them down.
The hosts played with their usual high-energy approach and caused problems from set-pieces, with City keeper Gianluigi Donnarumma caught under an early cross before saving an Anthony effort with his legs, while Keane Lewis-Potter hit the side netting with a near-post header late in the half.
The second half was also tight, with both sides lacking quality in the attacking third and few clear-cut opportunities until a frantic finale.
Frenchman Rayan Cherki returned to action for City as a substitute after he was left out of last weekend's draw at Arsenal when boss Maresca revealed he was unhappy with how the attacker had performed in training.
But Cherki had little impact as Igor Thiago's first goal since 31 October levelled, before Dango Ouattara - whose strike snatched a draw against Arsenal - then dragged an effort wide in added time.
The draw meant City are without a league win on the road since 11 October and have not recorded back-to-back top-flight victories since 17 October.
While they are three points adrift of Arsenal, who visit Tottenham on Sunday, Brentford moved up to sixth and just two points off the top four.
BBC