Nani left Manchester United for Fenerbahce last year and was strongly linked with a £7 million move to the La Liga side, as well as Stoke this summer, after having impressed at Euro 2016.

Nani was part of Sir Alex Ferguson’s successful side and won the Premier League four times as well as the 2008 Champions League final.

A statement from Valencia read: “Valencia Club de Futbol have reached an agreement with Portuguese international Luis Carlos Almeida — ‘Nani’ — for the player to join the club for the next three seasons.

“He is currently in France with the Portuguese national team, who will play in the Euro 2016 semi-finals against Wales this Wednesday. He has represented his country on 101 occasions, scoring 20 goals — two of which have come in the ongoing tournament.

“Nani will be officially presented as a Valencia CF player in the coming days.”