Chelsea had two players sent off and lost out to a Heidar Helguson penalty in a heated west London derby.
Helguson won the spot-kick after he was pushed by David Luiz and then beat Petr Cech, who got a touch on the effort.
Jose Bosingwa was sent off for bringing down Shaun Wright-Phillips when through on goal and Didier Drogba was then dismissed for a lunge on Adel Taarabt.
Nicolas Anelka wasted a headed chance late on as the visitors pushed for an equaliser but Rangers held on.
The Chelsea players appeared to take little notice of their manager Andre Villas-Boas who warned before the match of the "emotional challenge" they faced, with the tight stadium at Loftus Road and the added intensity of the derby.
In the end a lack of discipline proved costly with seven bookings and two red cards.
His counterpart Neil Warnock got his tactics spot on as the home side prevented Chelsea from getting into any sort of groove in the first half.
Did you know?
- The win was QPR's first at home since 4 April
- And their first against Chelsea since 1995
- Shaun Derry was making his 600th senior appearance
- Frank Lampard was making his 500th Premier League appearance.
Chelsea struggled to keep possession as QPR harried and chased at every opportunity, giving their opponents no time on the ball.
The home side grew in confidence and took the lead after only nine minutes, from their first foray into the penalty area.
Luiz struggled with the movement of Helguson in the box, as he collected a long ball and the Brazilian barged him over, leaving referee Chris Foy little option but to point to the spot.
Taarabt thought he should take the resulting spot-kick but Helguson won the battle and beat Cech from the penalty spot, although the keeper did get a touch he could only palm the ball into the roof of the net.
Rangers continued to push as the visitors struggled against the power of their opposition.
The challenge was made even harder for Chelsea on 29 minutes when Bosingwa was shown a straight red card.
The Portuguese defender was battling with his former Chelsea team-mate Wright-Phillips, who was through on goal, before he went down under the pressure.
Foy was quick to produce the red card for denying the goalscoring opportunity although the decision seemed harsh.
Chelsea were then reduced to nine men on 41 minutes when Drogba was instantly dismissed for a reckless tackle.
There was no question over the red card this time, as Drogba went in two-footed on midfielder Taarabt.
Half-time could not come quickly enough for Villas-Boas to try to reorganise his side.
Whatever he said seemed to work as Chelsea started the brighter in the second period, Frank Lampard seeing a header deflected wide before Branislav Ivanovic forced a good save from Paddy Kenny.
The Blues felt they had two good appeals for a penalty as they continued to press for an equaliser.
Lampard was brought down by Fitz Hall inside the box, while Luiz appeared to be held by Helguson - referee Foy waved away the protests.
With only 10 minutes to go they had their best chance to equalise.
Ivanovic swung in an excellent ball on to the head of Anelka but his effort was straight at an alert Kenny.
Three minutes later and the visitors went close again when Luiz hit an overhead kick, but Lampard, placed in front of the goal, deflected the ball over the bar.
Luiz, Raul Meireles, Ashley Cole and John Terry were all booked in the closing stages as things threatened to boil over.
Live Text Commentary
Full Time The game is over, as the referee blows his whistle.90:00 +4:34
Free kick awarded for an unfair challenge on David Luiz by Alejandro Faurlin. Free kick crossed left-footed by Florent Malouda from right wing, save made by Patrick Kenny.90:00 +2:59
Foul by Jamie Mackie on Ashley Cole, free kick awarded. Petr Cech takes the free kick.90:00 +2:23
Florent Malouda gives away a free kick for an unfair challenge on Joey Barton. Joey Barton restarts play with the free kick.90:00 +0:56
The ball is crossed by Florent Malouda.90:00 +0:28
A cross is delivered by Shaun Wright-Phillips, save made by Petr Cech.89:12 Booking
Booking John Terry receives a caution.88:22
Shaun Wright-Phillips is ruled offside. Petr Cech takes the indirect free kick.87:42
David Luiz concedes a free kick for a foul on Clint Hill. Patrick Kenny takes the free kick.86:26
Shot from just outside the box by Shaun Wright-Phillips misses to the right of the target.86:06
Shaun Wright-Phillips takes a shot. Blocked by David Luiz.84:48
John Terry concedes a free kick for a foul on Anton Ferdinand. Patrick Kenny takes the free kick.82:17
Nicolas Anelka produces a cross, David Luiz produces a overhead kick right-footed shot from 12 yards. Frank Lampard gets a block in.80:59 Substitution
Substitution Jamie Mackie replaces Shaun Derry.79:25
Branislav Ivanovic crosses the ball, Nicolas Anelka takes a shot. Patrick Kenny makes a brilliant save.77:48
Free kick awarded for a foul by Clint Hill on Nicolas Anelka. The free kick is swung in left-footed by Florent Malouda, Anton Ferdinand makes a clearance.75:07
The ball is delivered by Joey Barton, Heidar Helguson conjures a left-footed shot from inside the six-yard box that clears the bar.75:07 Booking
Booking Ashley Cole goes into the referee's book.75:02
Joey Barton fouled by Ashley Cole, the ref awards a free kick.73:49
The ball is delivered by Luke Young, David Luiz manages to make a clearance.
The ball is crossed by Shaun Wright-Phillips.71:25 Substitution
Substitution Florent Malouda replaces Raul Meireles.71:25 Booking
Booking Raul Meireles goes into the referee's book for unsporting behaviour.71:20
Joey Barton has an effort at goal from just outside the area which goes wide of the left-hand post.71:07
John Terry takes a shot. Save made by Patrick Kenny.70:17
Unfair challenge on Mikel by Joey Barton results in a free kick. Direct free kick taken by David Luiz.69:09
Free kick crossed right-footed by Joey Barton, Petr Cech makes a save.69:09 Booking
Booking The referee cautions David Luiz for unsporting behaviour.69:05
Free kick awarded for a foul by David Luiz on Anton Ferdinand.67:18
The official flags Tommy Smith offside. Ashley Cole takes the free kick.66:46
Shot by Nicolas Anelka. Blocked by Anton Ferdinand.63:40
Alejandro Faurlin concedes a free kick for a foul on Nicolas Anelka. Raul Meireles crosses the ball from the free kick right-footed from right channel, Clint Hill makes a clearance.62:41
Tommy Smith is ruled offside. Petr Cech restarts play with the free kick.60:53 Substitution
Substitution Tommy Smith comes on in place of Adel Taarabt.60:11
Short corner taken by Ashley Cole from the left by-line, Centre by Raul Meireles.58:47
David Luiz restarts play with the free kick.58:47 Booking
Booking Joey Barton receives a yellow card for unsporting behaviour.58:41
Free kick awarded for a foul by Joey Barton on John Terry.58:17
The assistant referee flags for offside against Shaun Wright-Phillips. Indirect free kick taken by Petr Cech.57:26
Direct free kick taken by Patrick Kenny.57:26 Booking
Booking Branislav Ivanovic is cautioned.57:23
Free kick awarded for a foul by Branislav Ivanovic on Adel Taarabt.55:49
Effort from outside the box by John Terry goes wide right of the target.53:55
Luke Young produces a right-footed shot from deep inside the penalty area which goes wide of the left-hand post.52:56
The assistant referee flags for offside against Shaun Wright-Phillips. Free kick taken by David Luiz.51:22
Direct free kick taken by Petr Cech.51:22 Booking
Booking Frank Lampard booked.51:22 Booking
Booking Shaun Derry is shown a yellow card.51:14
Free kick awarded for a foul by Shaun Derry on Frank Lampard.49:38
Shot on goal comes in from Alejandro Faurlin from the free kick.49:38 Booking
Booking Mikel receives a yellow card.49:37
Free kick awarded for an unfair challenge on Adel Taarabt by Mikel.48:56
Frank Lampard takes a shot. Blocked by Anton Ferdinand. Corner taken by Raul Meireles from the right by-line, clearance made by Alejandro Faurlin.48:10
The ball is delivered by Branislav Ivanovic, Patrick Kenny makes a save.46:21
The ball is crossed by Raul Meireles, Frank Lampard takes a shot. Anton Ferdinand gets a block in. Inswinging corner taken right-footed by Frank Lampard from the left by-line, clearance by Heidar Helguson.45:01
The referee gets the second half started.45:00 +2:26 Half time
Half Time The referee blows for half time.45:00 +2:00
Unfair challenge on Clint Hill by David Luiz results in a free kick. Clint Hill takes the direct free kick.45:00 +0:56 Substitution
Substitution Nicolas Anelka is brought on as a substitute for Juan Mata.45:00 +0:30
Shaun Wright-Phillips is flagged offside by the assistant referee. Direct free kick taken by David Luiz.43:30
Free kick awarded for an unfair challenge on Raul Meireles by Joey Barton. Direct free kick taken by Petr Cech.43:00
Heidar Helguson gives away a free kick for an unfair challenge on David Luiz. Free kick taken by David Luiz.40:34
Direct free kick taken by Patrick Kenny.40:34 Dismissal
Dismissal Didier Drogba is shown a red card for serious foul play.40:31
Free kick awarded for an unfair challenge on Adel Taarabt by Didier Drogba.38:18
Long distance shot from Raul Meireles misses to the left of the net.38:01
Raul Meireles fouled by Shaun Derry, the ref awards a free kick. Direct free kick taken by Mikel.35:34 Substitution
Substitution Branislav Ivanovic replaces Daniel Sturridge.34:42
Joey Barton concedes a free kick for a foul on Petr Cech. Free kick taken by Petr Cech.32:16
Adel Taarabt produces a strike on goal direct from the free kick, save by Petr Cech.32:16 Dismissal
Dismissal The referee shows Jose Bosingwa a red card for professional foul.32:11
Shaun Wright-Phillips fouled by Jose Bosingwa, the ref awards a free kick.31:03
Shaun Wright-Phillips produces a right-footed shot from just outside the box that misses to the right of the target.29:49
Adel Taarabt fouled by Mikel, the ref awards a free kick. Free kick taken by Adel Taarabt.28:33
Free kick awarded for an unfair challenge on Joey Barton by Frank Lampard. Free kick crossed by Joey Barton, Didier Drogba manages to make a clearance.28:10
The ball is delivered by Jose Bosingwa, save by Patrick Kenny.26:19
Clint Hill concedes a free kick for a foul on Daniel Sturridge. Jose Bosingwa takes the free kick.25:26
Raul Meireles is penalised for a handball. Patrick Kenny restarts play with the free kick.23:44
Effort from outside the box by Didier Drogba goes wide right of the target.23:15
Free kick awarded for an unfair challenge on Daniel Sturridge by Alejandro Faurlin. Mikel takes the free kick.22:09
Jose Bosingwa delivers the ball, Anton Ferdinand manages to make a clearance. Frank Lampard takes the outswinging corner, David Luiz produces a headed effort from deep inside the six-yard box which goes wide of the right-hand upright.21:34
The referee blows for offside. David Luiz takes the free kick.19:51
Ashley Cole has an effort at goal from outside the box which goes wide right of the goal.18:54
Foul by Mikel on Heidar Helguson, free kick awarded. Adel Taarabt crosses the ball from the free kick right-footed from left wing, Petr Cech makes a save.16:20
Inswinging corner taken by Juan Mata from the right by-line, free kick awarded for an unfair challenge on Fitz Hall by Didier Drogba. Patrick Kenny takes the direct free kick.13:58
Corner taken by Juan Mata from the right by-line. Effort from just outside the box by Frank Lampard goes over the bar.13:38
Daniel Sturridge takes a shot. Clint Hill gets a block in.11:22
Unfair challenge on Ashley Cole by Joey Barton results in a free kick. Frank Lampard restarts play with the free kick.9:54
Fitz Hall fouled by Ashley Cole, the ref awards a free kick. Patrick Kenny takes the free kick.9:03 Goal scored
Goal! - Heidar Helguson - QPR 1 - 0 Chelsea Penalty taken right-footed by Heidar Helguson and scored. QPR 1-0 Chelsea.8:02
David Luiz concedes a Penalty for a foul on Heidar Helguson.6:42
Mikel challenges Adel Taarabt unfairly and gives away a free kick. Free kick crossed right-footed by Joey Barton, save by Petr Cech.2:48
Shaun Derry gives away a free kick for an unfair challenge on Didier Drogba. Frank Lampard delivers the ball from the free kick right-footed from left channel.1:41
Anton Ferdinand gives away a free kick for an unfair challenge on Didier Drogba. Raul Meireles restarts play with the free kick.0:55
Daniel Sturridge has an effort at goal from the edge of the box that misses to the right of the target.0:12
Daniel Sturridge fouled by Clint Hill, the ref awards a free kick. Direct free kick taken by David Luiz.0:00
The referee gets the game underway.
Live data and text provided by our data suppliers