Marco Marchionni is set to join Fiorentina from Juventus, paving the way for Felipe Melo to move in the opposite direction.
Juventus are eager to sign Melo and it was reported earlier this week that they had offered cash plus Marchionni in order to meet the Fiorentina midfielder's buy-out clause of £21.6million.
An exchange then appeared in doubt due to Marchionni's wage demands, but the winger has now agreed to come to Fiorentina.
"Florence was always my first choice," the 28-year-old Italian told reporters.
Italian sources suggest that Juventus will now aim to finalise a move for Melo in the next couple of days.
The Brazilian had also been a transfer target for Arsenal but it appears Arsene Wenger may have to turn his focus elsewhere.