By Phil McNultyChief football writer, BBC Sport at Upton Park
Everton came from behind to beat West Ham United and move back into fourth place as both sides ended with 10 men at Upton Park.
Carlton Cole gave West Ham an early lead but was then shown a hotly-contested red card for a high challenge on Leighton Baines after the interval.
Victor Anichebe had already headed Everton level after 64 minutes and they cashed in on West Ham's numerical disadvantage when Steven Pienaar scrambled in what proved to be the winner shortly after Cole was sent off.
Everton came from behind to win for the fourth time in the Premier League this season. Only Manchester United, who have done it seven times, have achieved this more.
Everton had opportunities to increase their lead but Kevin Nolan squandered a late opportunity to equalise for West Ham as they attempted to overcome the handicap of Cole's dismissal to earn a point.
Darron Gibson was also sent off in stoppage time by referee Anthony Taylor after a collision with Mark Noble that had to be met with similar punishment to Cole - leaving both managers unhappy at the final whistle.
West Ham manager Sam Allardyce will feel his side suffered an injustice, but Everton counterpart David Moyes will view this as a vital three points as they continue to battle at the top end of the table.
Everton were missing Marouane Fellaini, who started a three-game suspension after headbutting Stoke's Ryan Shawcross, but still started brightly.
Referee cost us game - Allardyce
Sylvain Distin should have done better than head down and over the top from Baines's free-kick - then Everton saw a goal ruled out in contentious circumstances.
The diminutive figure of Leon Osman rose to head in a corner from Baines but, much to Everton's obvious fury, the celebrations were halted by a linesman's flag. It looked like Anichebe had been penalised for impeding goalkeeper Jussi Jaaskelainen but Anichebe would counter but saying he was simply standing his ground.
Everton's frustration deepened as Cole gave West Ham the lead soon after, escaping John Heitinga far too easily and shooting low past Tim Howard.
The Merseysiders emerged with far more intent after the break and Nikica Jelavic should have equalised when the ball broke to him eight yards out after a penalty area scramble but the Croat could only shoot straight at Jaaskelainen.
Everton's pressure was mounting, however, and they restored parity when Anichebe got a glancing touch on to Pienaar's cross to leave Jaaskelainen helpless.
Everton just about deserved win - Moyes
If Everton thought they had been harshly treated by Osman's disallowed goal, West Ham were left nursing an equal sense of injustice when Cole was sent off in the 66th minute. The striker's foot was raised in a challenge with Baines and he caught the England defender, but there was still surprise when referee Taylor produced the red card.
And to make matters worse for West Ham, Everton were soon in front as Pienaar scrambled in a finish at the near post after Osman had made inroads into the penalty area.
Jelavic's assured finishing took had deserted him in a poor personal performance and he could only find the sidenetting when presented with a chance to wrap up Everton's victory.
Nolan was West Ham's main danger in the closing stages and twice had opportunities to equalise, once with a shot that was deflected inches wide then when he uncharacteristically off target when clean through.
90:00+3:02 Substitution Shane Duffy joins the action as a substitute, replacing Victor Anichebe.
90:00+3:02 The referee blows for offside.
90:00+1:45 Mark Noble takes the free kick.
90:00+1:45 Sent off Darron Gibson receives a red card for serious foul play.
90:00+1:43 Free kick awarded for a foul by Darron Gibson on Mark Noble.
90:00+0:20 Effort from deep inside the area by Kevin Nolan misses to the left of the goal.
89:35 Leon Osman takes a shot. Save by Jussi Jaaskelainen. Nikica Jelavic produces a right-footed shot from deep inside the six-yard
box which goes wide of the right-hand upright.
88:51 Darron Gibson takes the outswinging corner, Winston Reid makes a clearance.
87:21 Direct free kick taken by Phil Jagielka.
87:21 Substitution Bryan Oviedo replaces Steven Pienaar.
87:21 Substitution Jack Collison joins the action as a substitute, replacing Matthew Jarvis.
87:21 Winston Reid challenges Steven Naismith unfairly and gives away a free kick.
84:37 James Collins takes the free kick.
84:37 Substitution Phil Neville goes off and Steven Naismith comes on.
84:37 Winston Reid fouled by Victor Anichebe, the ref awards a free kick.
81:44 Kevin Nolan takes a shot. Johnny Heitinga gets a block in. Mark Noble takes the inswinging corner, Victor Anichebe makes a
Correction - 80:22 Substitution Jordan Spence joins the action as a substitute, replacing Joey O'Brien.
80:22 Substitution Joey O'Brien leaves the field to be replaced by Jordan Spence.
78:45 Free kick awarded for a foul by Leighton Baines on Matthew Taylor. Jussi Jaaskelainen takes the free kick.
76:36 Victor Anichebe has an effort at goal from deep inside the area missing to the left of the goal.
75:32 Steven Pienaar takes a shot. Save by Jussi Jaaskelainen.
72:17 Leon Osman provided the assist for the goal.
72:17 GOAL - Steven Pienaar:West Ham 1 - 2 Everton Steven Pienaar finds the net with a goal from close range to the bottom left corner of the goal. West Ham 1-2 Everton.
70:52 Free kick awarded for an unfair challenge on Winston Reid by Victor Anichebe. Free kick taken by Jussi Jaaskelainen.
70:34 Victor Anichebe takes a shot. Blocked by James Collins.
66:12 Tim Howard restarts play with the free kick.
66:12 Sent off Carlton Cole is shown a red card.
66:06 Carlton Cole challenges Leighton Baines unfairly and gives away a free kick.
63:57 The assist for the goal came from Steven Pienaar.
63:57 GOAL - Victor Anichebe:West Ham 1 - 1 Everton Victor Anichebe scores a headed goal from inside the box. West Ham 1-1 Everton.
63:38 Darron Gibson takes the free kick.
63:38 Booking Modibo Maiga goes into the book for unsporting behaviour.
63:28 Modibo Maiga concedes a free kick for a foul on Steven Pienaar.
59:22 Modibo Maiga takes a shot. Sylvain Distin gets a block in.
57:07 Substitution Modibo Maiga on for Gary O'Neil.
56:41 The offside flag is raised against Nikica Jelavic. Jussi Jaaskelainen takes the free kick.
55:19 Carlton Cole concedes a free kick for a foul on Phil Jagielka. Free kick taken by Phil Neville.
52:59 Kevin Nolan challenges Steven Pienaar unfairly and gives away a free kick. Shot comes in from Darron Gibson from the free
51:17 Steven Pienaar takes a shot. Blocked by Mark Noble. Corner taken right-footed by Darron Gibson from the left by-line, Carlton
Cole manages to make a clearance.
50:42 James Collins concedes a free kick for a foul on Victor Anichebe. Darron Gibson takes the direct free kick.
50:11 Nikica Jelavic is caught offside. Free kick taken by Jussi Jaaskelainen.
48:24 Nikica Jelavic takes a shot. Jussi Jaaskelainen makes a save.
47:19 The assistant referee flags for offside against Nikica Jelavic. Jussi Jaaskelainen takes the free kick.
47:00 Carlton Cole takes a shot. Johnny Heitinga gets a block in.
45:47 The official flags Nikica Jelavic offside. Direct free kick taken by James Collins.
45:01 The second half begins.
45:00+1:09 The referee blows for half time.
43:37 Foul by Winston Reid on Nikica Jelavic, free kick awarded. Direct free kick taken by Phil Neville.
40:45 Kevin Nolan challenges Leon Osman unfairly and gives away a free kick. Phil Neville takes the direct free kick.
39:18 Free kick awarded for an unfair challenge on Steven Pienaar by Gary O'Neil. Shot on goal comes in from Darron Gibson from
the free kick, Jussi Jaaskelainen makes a save. Corner from the right by-line taken by Leighton Baines, James Collins makes
36:54 Gary O'Neil concedes a free kick for a foul on Steven Pienaar. Darron Gibson restarts play with the free kick.
36:18 Corner taken by Mark Noble from the left by-line, save by Tim Howard.
34:48 Corner from left by-line taken by Mark Noble. The referee penalises Carlton Cole for handball. Free kick taken by Tim Howard.
34:05 Nikica Jelavic produces a right-footed shot from outside the box and misses left.
33:14 Victor Anichebe is flagged offside by the assistant referee. Free kick taken by Jussi Jaaskelainen.
32:17 James Collins fouled by Victor Anichebe, the ref awards a free kick. Jussi Jaaskelainen restarts play with the free kick.
30:36 The assistant referee flags for offside against Nikica Jelavic. Indirect free kick taken by Jussi Jaaskelainen.
29:16 Victor Anichebe fouled by Winston Reid, the ref awards a free kick. Free kick taken by Darron Gibson.
27:10 Carlton Cole takes a shot. Save by Tim Howard.
26:52 Victor Anichebe challenges Winston Reid unfairly and gives away a free kick. James Collins takes the free kick.
26:04 Leon Osman produces a right-footed shot from the edge of the area and misses to the left of the goal.
23:33 Corner taken left-footed by Leighton Baines from the right by-line, James Collins manages to make a clearance.
21:22 Steven Pienaar takes a shot. Save by Jussi Jaaskelainen.
18:52 Phil Jagielka gives away a free kick for an unfair challenge on Matthew Jarvis. Mark Noble delivers the ball from the free
kick right-footed from left wing, save by Tim Howard.
18:10 The referee blows for offside. Johnny Heitinga takes the indirect free kick.
17:22 The official flags Matthew Taylor offside. Tim Howard takes the indirect free kick.
13:33 Assist by Matthew Taylor.
13:33 GOAL - Carlton Cole:West Ham 1 - 0 Everton Carlton Cole scores a goal from the edge of the area to the bottom left corner of the goal. West Ham 1-0 Everton.
10:47 Corner taken left-footed by Leighton Baines from the right by-line, Victor Anichebe challenges Jussi Jaaskelainen unfairly
and gives away a free kick. Free kick taken by Jussi Jaaskelainen.
8:01 Foul by James Tomkins on Steven Pienaar, free kick awarded. A cross is delivered by Leighton Baines, Sylvain Distin has a
headed effort from close in and clears the bar.
0:00 The referee gets the game started.
Live text and data provided by The Press Association.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.