Swindon boosted their survival hopes with their first win in 19 games against Brentford.
The hosts should have taken a first half lead but Jeffrey Schlupp side footed wide with the goal gaping after a neat Gary Alexander through ball.
Swindon made the breakthrough with 10 minutes remaining when Calvin Andrew turned on the edge of the area and smashed a shot into the bottom corner.
Andrew almost added a second but his dipping drive hit the crossbar.
Brentford manager Nicky Forster told BBC London 94.9:
"It was disappointing. I think we didn't get going, we didn't create enough chances.
"We worked very hard, we tried to stop them in midfield from getting the ball and moving it around.
"But we just know that we were off the pace too much at the moment."
Swindon manager Paul Hart told BBC Wiltshire:
"We felt we were going to win at some stage and we should have won before now.
"It was a great goal, great strike. He's (Calvin Andrew) deserved that for the work he's put in.
"I'm delighted, absolutely delighted."
Brentford 31 Moore 03 Woodman 04 Bean (Wood - 67' ) 06 Balkestein 27 Neilson 32 Legge Booked 02 O'Connor 07 Saunders 26 Reed 29 Alexander (Weston - 82' ) 30 Schlupp (Grabban - 66' ) Substitutes 41 Carson 12 Spillane 22 Osborne 11 Weston 16 Wood 33 Byrne 19 Grabban Swindon 12 Smith 05 Frampton 06 Caddis 19 Lescinel Booked 21 Sheehan 04 Douglas 07 McGovern (Rose - 82' ) 10 Prutton 11 Timlin (N'Diaye - 66' ) 22 Ritchie 30 Andrew Booked Substitutes 26 Jesionkowski 02 Cuthbert 03 Rose 08 Ferry 29 N'Diaye 31 Bodin 24 Benyon
Ref: Robert Madley