Olivier Giroud came off the bench to head home a late winner and seal three points for Arsenal in a topsy-turvy Premier League opener against Leicester.
The Gunners had won just one of their last seven opening-day fixtures and looked destined to start another campaign slowly as the 2015-16 champions took the lead twice only to lose 4-3.
The night started perfectly for Arsenal as new signing Alexandre Lacazette marked his league debut with a goal after just 94 seconds, only for Shinji Okazaki to cancel it out three minutes later.
Jamie Vardy then capitalised on awful defending to twice put the Foxes ahead either side of Danny Welbeck's equaliser before Arsene Wenger sent on the cavalry.
Substitute Aaron Ramsey rifled home to level before Giroud - introduced alongside the Wales international - headed in an 85th-minute winner to settle a breathless encounter in Arsenal's favour.
Gunners chief Wenger said: "Going forward and character wise we have been great. We had some avoidable goals which we conceded and overall we have to work on that.
"It's impossible to keep them happy when strikers don't play. We have many games and hopefully I can give games to all the strikers. They all deserve to play."
Leicester manager Craig Shakespeare said: "We've had this a few times here. To lose in the manner we did is very disappointing. We can take heart from the way we went about it but in those key moments we needed to be a bit more streetwise.
"Arsenal had a lot of possession and have world-class players. We showed what we're capable of, showed heart and spirit. We've got a challenging start but if we get this type of performance then we'll get points on the board."
Lacazette converted his first chance in the Premier League, heading home Mohamed Elneny's inch-perfect cross to send the home fans into raptures.
But Arsenal's defence, with essentially two full-backs playing in their back three, were soon caught out having been given a warning when want-away Leicester winger Riyad Mahrez volleyed wide.
Petr Cech was largely at fault, coming off his line but getting nowhere near Marc Albrighton's deep cross as Foxes debutant Harry Maguire headed back across goal for Okazaki to nod in.
Sead Kolasinac marked his debut with a goal in the Community Shield and forced Kasper Schmeichel into a smart save here with a driven shot from just inside the box, but the Gunners again fell behind to Vardy's strike.
Elneny played a pass to Granit Xhaka who, with very little space, gave the ball away to Albrighton and the former Aston Villa man crossed for Vardy to tuck away his chance.
Okazaki nearly made Arsenal's first half even more galling but he could only head narrowly wide with the home defence all over the place.
Arsenal wanted a penalty for handball against Wilfred Ndidi with referee Mike Dean unmoved, but the equaliser came on the stroke of half-time after Kolasinac squared to Welbeck with the goal gaping.
Mahrez saw an effort tipped over by Cech as Leicester looked to regain their advantage - something they did from the resulting corner as Vardy headed home the Algerian's set-piece.
Schmeichel was alert to prevent Hector Bellerin finishing off a slick Arsenal attack.
Then Ramsey fired past Schmeichel from Xhaka's pass with eight minutes remaining. There was, however, a strong suspicion of handball by Mesut Ozil ahead of the corner that indirectly led to the goal.
Schmeichel's brilliant diving stop denied Lacazette a fourth but, from the corner that followed, Giroud headed home off the underside of the crossbar to seal a remarkable three points.