David Moyes was named the new manager of Manchester United Thursday in a deal that will keep him at Old Trafford until 2019.

The 50-year-old, who was the third-longest tenured coach in the English Premier League behind Arsenal's Arsene Wenger and Ferguson, will officially take over on July 1.

"It's a great honor to be asked to be the next manager of Manchester United," Moyes told United's official website. "I am delighted that Sir Alex saw fit to recommend me for the job. I have great respect for everything he has done and for the football club."

Ferguson revealed earlier this week that he would be retiring at the end of this season after 26 years at Manchester United, during which time he became one of the most visible and surely the most successful coaches in all of English football.

"The decision to retire is one that I have thought a great deal about and one that I have not taken lightly,'' the 71-year-old said in a statement on Wednesday. "It is the right time.''

Ferguson, who has won 49 trophies throughout his career, started in professional football in Scotland, where he won 11 titles before coming to Old Trafford in 1986. During his tenure at United he led the Red Devils to 38 trophies, including 13 Premier League championships, two Champions League titles and five FA Cups as well as six European club competitions.

"It was important to me to leave an organization in the strongest possible shape and I believe I have done so,'' Ferguson said. "The quality of this league winning squad, and the balance of ages within it, bodes well for continued success at the highest level whilst the structure of the youth setup will ensure that the long-term future of the club remains a bright one.''

Ferguson is spot on; he has managed to bring United to the forefront of football stardom and has turned the club into one of the largest sport brands in the world.

The club is owned by the American Glazer family and is listed on the New York Stock Exchange with an estimated value of $3.1 billion.