The Portugal left-back struggled for first-team football at the Spanish club last season.
Former Manchester United manager David Moyes tried to bring him to Old Trafford in September 2013 but a transfer deadline day loan move fell through.
The 27-year-old joined Real from Benfica for a reported £25m in 2011.
Find all the latest football transfers on our dedicated page.

Local man, Joe McMinn, 28, was discovered in an area known as Devil's Den, near Goodwyns housing estate in Dorking, in the early hours of Easter Monday.
Richard Taylor, 21, of no fixed address, is due to appear at Guildford Magistrates Court later.
A post-mortem found Mr McMinn died of multiple stab wounds.
Real Madrid defender Fabio Coentrao has joined French side Monaco on a season-long loan deal.
[NEXT_CONCEPT]
A man has been charged with murder after a body was found in a woodland stream in Surrey.