Real Madrid have agreed to sign Porto's Brazilian right-back Danilo for £23m at the end of the season.
Danilo, 23, has become a regular for the national side since last summer's World Cup and has impressed during Porto's run to the Champions League quarter-finals.
A statement by Porto to the Portuguese stock exchange confirmed the fee.
Real confirmed the move in a statement, which added that the defender has signed a deal until the summer of 2021.
Real's current right-backs are Dani Carvajal and ex-Liverpool player Alvaro Arbeloa.
|South American football expert Tim Vickery|
|"From Carlos Alberto to Cafu, Brazil have had more spectacular players at right-back than most - but Porto man Danilo is proving a splendid all-rounder. He can join the attack as an element of surprise, but his defensive skills are also sound"|
|Read more analysis from Tim|