Newcastle stunned Leicester 4-2 to inch closer to survival in the English Premier League and deal a potentially damaging blow to the Foxes’ Champions League hopes on Friday.

Callum Wilson struck twice to all but secure the Magpies’ Premier League status. They are one point from safety.

Caglar Soyuncu's error gifted Joe Willock the opener, then Paul Dummett's first goal in more than five years doubled the visitors' lead.

Newcastle's Paul Dummett, right, scores his team's second goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021.(Alex PantlingPool via AP)

Newcastle's Paul Dummett, right, scores his team's second goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021.(Alex PantlingPool via AP)

Wilson’s second-half brace lifted the Magpies to 13th place, while Marc Albrighton and Kelechi Iheanacho scored late for Leicester.

They will be safe if Fulham fail to beat Burnley on Monday, but can go down only on goal difference as they face the Cottagers on the final day of the season.

Leicester struggled badly after losing Jonny Evans in the warm-up and remain third but opened the door for Chelsea and West Ham in the race to finish in the top four.

Newcastle's players celebrate after scoring their side's second goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021. (Michael ReganPool via AP)

Newcastle's players celebrate after scoring their side's second goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021. (Michael ReganPool via AP)

The Foxes go to Manchester United on Tuesday while they also face Chelsea and Tottenham — after their FA Cup final against the Blues — in their final three top-flight games.

They could suffer late Champions League heartbreak again, with fifth-placed West Ham five points behind with a game in hand, after the Foxes also missed out on the top four on the final day of last season.

More AP soccer: https://apnews.com/hub/soccer and https://twitter.com/AP_Sports

Newcastle's Paul Dummett, left, scores his team's second goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021. (Nick PottsPool via AP)

Newcastle's Paul Dummett, left, scores his team's second goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021. (Nick PottsPool via AP)

Newcastle's Callum Wilson scores his side's third goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021. (Nick PottsPool via AP)

Newcastle's Callum Wilson scores his side's third goal during the English Premier League soccer match between Leicester City and Newcastle United at the King Power Stadium in Leicester, England, Friday, May 7, 2021. (Nick PottsPool via AP)