Canada international Marcus Haber's solitary goal clinched a 1-0 win to finally ended Stevenage's run of six straight defeats and dent Brentford's promotion hopes.
Boro came into the match in dismal form, but earned a deserved victory when Haber stole in behind the Bees defence following a long header upfield from Stevenage skipper Mark Roberts.
Stevenage started the brighter and almost went ahead in the fifth minute when former Brentford midfielder Gavin Mahon headed against the post.
It was then Haber's turn to strike woodwork, heading Greg Tansey's corner against the crossbar, while he was again denied after 35 minutes when Bees goalkeeper Simon Moore kept out his close-range effort.
Brentford came flying out of the blocks after the break and almost levelled when Clayton Donaldson found himself one-on-one before Haber's opportunist goal broke the deadlock.
Bradley Wright-Phillips saw a good chance to level saved before Boro's Sam Hoskins warmed Moore's palms late on as Stevenage held on for the win.
Brentford missed out on the chance to move into the top three after suffering a first league defeat in six.