Manchester United have announced that former Barcelona goalkeeper Victor Valdes has signed for the club on an 18-month deal, with the option of a further year.
Widespread reports emerged this week claiming that the Spaniard was on the verge of signing a contract with the Red Devils after a training stint with Louis van Gaal's team.
The 32-year-old, who has not played since March 2014 after tearing his anterior cruciate ligament, has been without a club since last summer when his contract at Barcelona expired.
Valdes was rumoured to be closing in on a move to Liverpool at the start of the season, but the shot-stopper has opted to fight for his place alongside David de Gea at Old Trafford.
"It is a real honour to sign for Manchester United," Valdes told the club's official website. "I would like to thank Louis van Gaal and the club for allowing me to do my rehabilitation and to train with the team at the Aon Training Complex.
"From my short time here I can already see this is a very special club. I worked with Louis van Gaal during my time at FC Barcelona and to have the opportunity to work with him here at Manchester United is a dream come true."
Valdes spent 12 years as part of Barcelona's first team in Spain.