Manchester United have confirmed that Erik ten Hag will take over as their new manager at the end of the season.

After months of speculation, the 52-year-old Ajax head coach will succeed Ralf Rangnick in the Old Trafford hotseat at the end of a frustrating campaign for the Red Devils.

With Rangnick moving upstairs to take on a consultancy role at the club, Ten Hag has agreed a contract until June 2025, with the option of a further year.

Ten Hag, who will take charge subject to being issued with a visa, told United's official website: "It is a great honour to be appointed manager of Manchester United and I am hugely excited by the challenge ahead.

"I know the history of this great club and the passion of the fans, and I am absolutely determined to develop a team capable of delivering the success they deserve.

"It will be difficult to leave Ajax after these incredible years, and I can assure our fans of my complete commitment and focus on bringing this season to a successful conclusion before I move to Manchester United."

Ten Hag has won two Eredivisie titles and the KNVB Cup twice since joining Ajax in 2017, and will hope to bow out after securing a third league crown in the coming weeks, with the Amsterdam giants leading second-placed PSV by four points.

Meanwhile, the Red Devils' season hit a new low this week when they were thrashed 4-0 by Liverpool in the Premier League at Anfield, leaving their chances of qualifying for next season's Champions League looking slim.

United will have endured five seasons without lifting a major trophy by the time Ten Hag starts work.