David Moyes will leave his role as West Ham manager by mutual consent at the end of the season.
The club announced the news on Monday evening amid reports former Spain, Real Madrid and Wolves boss Julen Lopetegui has agreed a deal to take over in the summer.
“I have enjoyed four-and-a-half brilliant years at West Ham and the club is in a stronger position than when I returned back in 2019,” Moyes said in a statement on the West Ham website.
“When I joined West Ham for a second time, the club was one place above the relegation zone, and it has been a terrific journey to have achieved three consecutive seasons in Europe.
“After leading the club to safety, we guided the team to finishes of sixth and seventh in the Premier League, and I was delighted when we won the Europa Conference League title last June – the club’s first major trophy in 43 years.
“I would like to thank all the players for their support, and all the success they have achieved, over the last four-and-a-half years.”
Moyes, 61, has been in charge at West Ham since 2019, but is out of contract at the end of the season and has refused to discuss his future at the club until after their final game, at Manchester City on May 19.
West Ham were thrashed 5-0 by Chelsea on Sunday to effectively end their slim hopes of earning European qualification for a fourth-straight campaign.
The heavy defeat comes on the back of a 2-2 draw with Liverpool and 5-2 loss at Crystal Palace and they now sit ninth in the Premier League table with two games to go.
The Hammers, Europa Conference League winners last season, were also knocked out of the Europa League last month following a quarter-final loss to Bayer Leverkusen.
In a statement, West Ham said the recruitment process for Moyes’ successor had begun, but they would be “making no further comment until a new appointment is confirmed”.
West Ham joint-chairman David Sullivan offered “sincere thanks and gratitude” for Moyes’ efforts in the job.
“David has been responsible for a period of great progress and success in our history and we are extremely grateful for all of his hard work, commitment and dedication to the role,” Sullivan said.
“David has been an absolute professional to work with and he will leave with our greatest respect and good wishes – he deserves to be held in the highest esteem for the service he has given to West Ham United and we wish him every success in the future.
“By making this announcement now, it allows David to get the send-off he deserves from the West Ham supporters and for us all to show our appreciation to him at our final home fixture of the season against Luton Town on Saturday.”
Lopetegui has emerged as a reported target to take up the job at the London Stadium next season.
The Spaniard guided Wolves to safety last term, but left the club after nine months on the eve of the new Premier League campaign in August.
The former Porto and Sevilla boss lifted Wolves from the bottom of the table to a 13th-placed finish during his spell in charge.
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country