Dani Alves has signed his new contact with Barcelona, committing his future to the club until 2015.
The signing of the deal, agreed and announced on Tuesday night, was confirmed in a short statement on the club's website.
After months of uncertainty over the former Sevilla defender's future, he has signed a four-year deal which includes a €150 million buyout clause, which will go down in value by €25 million per season to be worth €50 million in the final year of the deal.
Alves, who is in the Brazil squad for Sunday's friendly against Scotland, returned to Barcelona to sign the contract. Earlier on Wednesday, Alves expressed his delight with the new contract.
"Being at the club for so many years is a dream,'' he said. "I'm playing at one of the world's most desired teams, which is making history. The most important thing is that I'm happy and I want to make the most of it. It is a privilege and a joy to be here.''