Olivier Giroud scored his first Premier League goal for Arsenal as the Gunners came from behind to beat West Ham.
West Ham took the lead against the run of play when Mohamed Diame beat Vito Mannone with a curling shot.
Giroud equalised before the break when he poked in Lukas Podolski's cross at the near post.
Kevin Nolan missed two chances for the hosts and was made to pay when Theo Walcott came off the bench to make it 2-1 with Santi Cazorla hitting a third.
Walcott, who replaced the disappointing Gervinho, helped the Gunners take advantage in the last half hour as West Ham tired.
But having been on top for large parts of the game, it was no more than Arsene Wenger's team deserved as they extended their unbeaten record against the Hammers to nine games and moved to fifth in the Premier League table.
Sam Allardyce's side had to defend stoutly throughout the game but they came up against a midfield again run by the impressive Cazorla.
And their disappointment in losing their first Premier League home game of the season was compounded by an injury to forward Ricardo Vaz Te, who went off with a suspected dislocated shoulder.
Walcott and Cazorla's late goals in the space of six minutes gave the scoreline added gloss as Andy Carroll caused concern in the visitors' defence on the striker's first start since suffering a hamstring injury.
But the result was the perfect response to the Gunners' defeat by Chelsea last weekend and means that is the only league defeat of their season so far.
Carroll's value was also underlined when he spent much of the first 20 minutes bolstering the Hammers defence as Arsenal wasted a number of promising opportunities.
Giroud almost scored in the first two minutes when Jussi Jaaskelainen tipped his shot round the post and Carroll blocked the French striker's goal-bound effort later in the first half.
So when West Ham's goal came on 21 minutes it was something of a surprise. Diame was fed by George McCartney down the left and the Senegalese