Ayoze Perez's hat trick all but guaranteed Premier League safety for Newcastle by securing a 3-1 victory over Southampton on Saturday.

The Spaniard scored twice in four minutes in the first half before a Southampton fightback inspired by changes at halftime.

One of the newcomers, Mario Lemina, pulled one back in the 59th minute before Perez netted his 11th goal of the season in the 86th.

Newcastle United's Isaac Hayden, left, and Southampton's Pierre-Emile Hojbjerg, during their English Premier League soccer match at St James' Park in Newcastle, England, Saturday April 20, 2019. (Richard SellersPA via AP)

Newcastle United's Isaac Hayden, left, and Southampton's Pierre-Emile Hojbjerg, during their English Premier League soccer match at St James' Park in Newcastle, England, Saturday April 20, 2019. (Richard SellersPA via AP)

Newcastle is 10 points clear of Cardiff in the relegation zone after a sixth win in the last seven home games in the league.

More AP soccer: https://apnews.com/apf-Soccer and https://twitter.com/AP_Sports

Newcastle United's Isaac Hayden, left, and Southampton's Ryan Bertrand in action during their English Premier League soccer match at St James' Park in Newcastle, England, Saturday April 20, 2019. (Richard SellersPA via AP)

Newcastle United's Isaac Hayden, left, and Southampton's Ryan Bertrand in action during their English Premier League soccer match at St James' Park in Newcastle, England, Saturday April 20, 2019. (Richard SellersPA via AP)