Julen Lopetegui has agreed to become West Ham’s next boss as David Moyes confirmed he is leaving the club on Monday night.
Mail Sport revealed last week that Spanish coach Lopetegui was in advanced talks to replace Moyes, whose contract expires at the end of the season.
And Lopetegui has now agreed to takeover at the east London side ahead of the 2024/25 season, when he will replace Moyes.
In confirming his exit, Moyes said: '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.
'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.
West Ham have confirmed that David Moyes will leave the club at the end of the season
Former Wolves manager Julen Lopetegui is set to replace Moyes as West Ham's new manager
'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.
'I have really enjoyed working with everyone at West Ham, and I would like to thank the Board for giving me the opportunity to manage this great club.
'I wish my eventual successor, the directors, the players, the staff, the fans, and everybody at West Ham, all the very best for the future.'
Work on the final details of Lopetegui’s agreement with the club were being ironed out on Monday but unless there is an unexpected collapse of the deal, Lopetegui will become new Hammers head coach.
It is believed Lopetegui is likely to assume the position of head coach not manager. Moyes is currently manager.
Talks between Lopetegui and the Hammers accelerated towards the end of last week, the Spaniard racing ahead of Sporting Lisbon boss Ruben Amorim in the race for the London Stadium job.
Amorim revealed over the weekend that he has now decided to stay at Sporting, but regardless of the Portuguese’s choice to stay in Lisbon it is understood Lopetegui was alway the front-runner for the job.
Moyes won the Europa Conference League last year - West Ham's first major trophy in 43 years
Joint chairman David Sullivan thanked 'absolute professional' Moyes for his contribution
Lopetegui’s role in improving Wolves and Sevilla has impressed Hammers chiefs, while Amorim’s £12.8million was also an obstacle.
Joint chairman David Sullivan added: 'On behalf of everyone at West Ham United, I would like to offer our sincere thanks and gratitude to David for the contribution he has made to the Football Club during his time as manager.
'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.
'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.'