David Moyes has told Everton he wants to become Sir Alex Ferguson’s successor as Manchester United manager.
The Goodison Park club confirmed that Moyes will depart when his contract expires this summer.
Minutes earlier, Manchester United appeared to signal that Moyes’ appointment was imminent.
The Old Trafford club put an entry on their Facebook page that said: “Send your personal welcome to our new manager David Moyes”.
United had denied a deal was done and said they did not know how the page was updated.
The page was later deleted.
Ferguson, 71, revealed his decision to step down on Wednesday after nearly 27 years in charge at Old Trafford.
Moyes, 50, in charge at Goodison Park since 2002, is out of contract at the end of the season.
Everton said in a statement: “Everton can confirm that David Moyes will leave the club at the end of the season.
“The manager met chairman Bill Kenwright early yesterday evening and confirmed his desire to join Manchester United.
“The chairman, on behalf of the club, would like to place on record his thanks to David for the massive contribution he has made to Everton since his arrival in March 2002. He has been an outstanding manager.
“During his tenure at Goodison Park, David has taken charge of the team on over 500 occasions including four European campaigns.
“Everton officials will start the search for a replacement manager immediately.”
It is understood Everton have already drawn up a shortlist.
Wigan’s Roberto Martinez and Swansea’s Michael Laudrup are thought to t