Leam Richardson's lucky goal brought an end to three successive home defeats for relegation-threatened Accrington.
The ex-Bolton defender looped in a cross to the far post that evaded everyone, skimmed the bar, and found the net on 31 minutes.
Accrington created the better chances throughout and Brentford keeper Ben Hamer had to be at his best to push out a vicious Andy Mangan strike.
Brentford rarely clicked as they slipped to a second successive defeat.
Accrington Stanley: Arthur, Thomas, Webb, Roberts, Richardson, Edwards, Mannix (Whalley 78), Craney, Harris (Procter 76), Mullin, Mangan (Todd 65).
Subs Not Used: Dunbavin, King.
Goals: Richardson 31.
Brentford: Hamer, Pead, Sankofa, Osborne, Dickson, Wayne Brown (Shakes 23), Smith, Milsom (Mousinho 76), Poole, Connell, Reid (Elder 66).
Subs Not Used: Simon Brown, Charles.
Booked: Milsom, Sankofa.
Ref: Russell Booth (Nottinghamshire).