Goals from Ayoze Perez and Matt Ritchie extended Newcastle’s wining streak to four as the Magpies reached their 40-point target against Arsenal.

Alexandre Lacazette opened the scoring for the Gunners with a volleyed-effort, before Ayoze Perez converted a sweeping strike and Matt Ritchie captured a dramatic winner.

Lacazette grabbed the opener 14 minutes in, after Shkodran Mustafi played a long-distance pass to Pierre-Emerick Aubameyang, who crossed the ball to the sliding Lacazette who converted high into the net.

Newcastle equalised just before the half-hour mark; Jonjo Shelvey played an exquisite pass over the Arsenal defence to Dwight Gayle which was then worked to DeAndre Yedlin, who put it on a plate for Perez to score past Petr Cech at his near post.

Arsenal were close to re-taking the lead after Granit Xhaka played a sweeping ball over the Newcastle defence to Mustafi, but the German’s headed cross could not be reached by Calum Chambers.

Alex Iwobi had Arsenal’s first chance of the second-half; the Nigerian struck from just outside the area and into the side-netting of Martin Dubravka’s near post.

Matt Ritchie sent Newcastle into the lead 68 minutes in as Islam Slimani flicked on a header before the Scotsman fired a right-footed strike past Cech from close range.

The home-side were denied a third by the crossbar 74 minutes in after Kenedy saw his deflected effort loop into the air and then off the woodwork.

Newcastle were close to scoring again three minutes later after Islam Slimani dazzled Rob Holding with some brilliant skill, but the Algerian’s cross could only be shot into the side-netting by Perez.

Arsenal dominated possession in the final stages but failed to test Newcastle goalkeeper Dubravka; the only scare occurred when the Slovakian dropped a cross and Lacazette hit the side-netting from a tightangle.

The win leaves Newcastle in tenth place and on 41 points, meaning the Magpies look home and dry in terms of avoiding relegation.

Below are the Newcastle United player ratings for their 2-1 win over Arsenal.

Mark Runnacles/Getty Images Sport Start slideshow