dani alves
Dani Alves decided to leave Barcelona at the end of last season after winning La Liga and the Copa del Rey.Getty

Juventus have confirmed the long-rumoured signing of Dani Alves, after the former Barcelona star passed a medical at the club's training ground on Monday (27 June). The Brazilian full-back has signed a two-year deal with the Serie A champions, with the option to extend the deal for an additional season at the end of the contract.

The 33-year-old enjoyed eight impressive years at Barcelona following a big-money transfer from Sevilla in 2008, winning three Champions Leagues, six La Liga titles and four Copa del Reys. However, his future had been called into question over recent seasons following rumours of discontent with club officials.

The Brazilian was tipped to leave the Catalan giants last summer, following a controversial press conference where he announced he had "one foot, half a body and almost a head" out of Barcelona. Instead, he signed a new two-year deal, which appeared to put speculation about any departure to bed.

However, in late May Sport reported the player had agreed a move to Juventus for next season. It emerged that the deal he signed last summer included a break clause allowing him to leave Barcelona as a free agent at the end of the 2015-16 campaign.

Barcelona technical director Robert Fernandez confirmed the news, but expected the move to be delayed due to Dani Alves' participation in the Copa America and his holidays. However, Juventus announced over the weekend that the Brazilian had arrived in Turin for a medical, which he has now passed.

"Dani Alves has agreed terms on a two-year contract with the Bianconeri until 30 June 2018 with an option for a third year," the club confirmed in an official statement.

Alves becomes Juventus's second major signing of the summer, following the purchase of Miralem Pjanic from Roma in a deal worth around £26.6m ($35.1m).

Juventus had also been linked with Barcelona centre-back Javier Mascherano, but last week their general director Giuseppe Marotta appeared to concede that the Argentine would stay at the Nou Camp.

Barcelona are yet to make any signings to fill the gap left by Alves, but speculation has linked them with the likes of Arsenal star Hector Bellerin and Chelsea's Cesar Azpilicueta.