Rotherham United's new era under Neil Redfearn got off to a losing start against Brentford at Griffin Park
Redfearn's first match as manager began disastrously as Alan Judge put the home side ahead after just two minutes, but a screamer from Joe Mattock a minute after half-time saw the Millers draw level.
Judge, who was the difference between the two Championship sides, powered home a header in the 57th minute to end a run of three successive Bees defeats.
The Millers battled gamely and came close to an equaliser when Matt Derbyshire's 67th-minute shot was saved by David Button, and the Brentford goalkeeper did even better with a brilliant parry from Paul Green's header four minutes later.
Danny Ward had been picked to start for the Millers but went down in the warm-up, to be replaced by Aidy White.
Mattock departed proceedings injured late on in the game.
After Judge's sublime 20-yard volleyed opener, Rotherham worked their way back into the match and enjoyed plenty of territory, but clear-cut chances were at a premium before the break
Derbyshire's flicked header after five minutes brought a good save from Button and Chris Maguire was close with a 25-yard effort soon after, while Aidy White cut inside only to shoot tamely at Button.
In the 78th minute, Rotherham keeper Lee Camp had to be alert at his near post to deny Judge a hat-trick with a smart dive.
Rotherham pressed in the closing stages but couldn't find a way through.
Brentford (4-4-1-1): Button; Yennaris, Tarkowski, Dean, Bidwell; Canos (Gogia 70), McCormack, Woods, Swift (Diagouraga 78); Judge; Djuricin (Hofmann 64). Subs not used: Bonham, Kerschbaumer, Vibe, O'Connell.
Rotherham United (4-4-2): Camp; Buxton, Rawson, Collins, Mattock (Ledesma 82); Maguire (Bowery 74), Smallwood, Green,White (G Ward 64); Clarke-Harris, Derbyshire. Subs not used: Collin, Broadfoot, Andreu, Halford,
Goals: Judge 2, 57 (Brentford); Mattock 46 (Rotherham).
Referee: Iain Williamson (Berkshire).
Attendance: 10,293 (565).