Manchester United have agreed to sign Germany midfielder Bastian Schweinsteiger from Bayern Munich, subject to a medical.
The 30-year-old is believed to have told Bayern he does not want to extend his contract, which runs to 2016.
Bayern's Chief executive Karl-Heinz Rummenigge  said: "We have reached an agreement with Manchester United over a transfer."
Schweinsteiger has made 536 appearances for Bayern since his debut in 2002.
Rummenigge added: "It's regrettable because Bastian meant a great deal to the club.
"He achieved great things but he wants to do something new at the end of his career. He asked that we meet his wishes.
"We tried to convince him to stay with Bayern Munich. But I also understand that a player who has spent 17 years at Bayern Munich still wants to gain a new experience."

Bastian Schweinsteiger

Bayern Munich (2002 - 2015): 500 first team appearances, 67 goals
Germany (2004 - present): 111 games, 23 goals
Major club honours: Champions League (1), Bundesliga (8), DFB Pokal (7)
International honours: World Cup winner 2014, third place 2006, 2010
United identified Schweinsteiger earlier this summer as a high-profile player they were interested in, along with Real Madrid defender Sergio Ramos.
A club statement said:  "Manchester United are delighted to announce they have reached an agreement with Bayern Munich to sign midfielder Bastian Schweinsteiger, subject to a medical and personal terms."
Schweinsteiger played under United boss Louis van Gaal while the Dutchman was in charge at Bayern between 2009 and 2011.
He helped his country win the 2014 World Cup and has one Champions League, eight Bundesliga titles and seven domestic cup triumphs to his name while at the German club.