Barcelona have announced that Dani Alves has agreed a new contract until 2015.
Brazil full-back Alves, 27, has been in discussions over a deal for some time as his current agreement was set to expire at the end of next season.
Manchester City have been repeatedly linked with the player, and Johan Cruyff gave credence to the rumours in January when he said it may be in Barca's best interests to allow Alves to move on to Eastlands.
However, a statement on the club's official website on Tuesday read: "FC Barcelona is pleased to announce an agreement with Dani Alves to extend his contract with the club for another three seasons, until June 30, 2015.
"The document will be signed on Wednesday at around 19.00. There will then be a photograph session open to the media by the doors to the FC Barcelona offices. "
Club president Sandro Rosell wrote on Twitter: "Very good news for Barca. Dani Alves has renewed his contract."
Alves joined Barcelona from Sevilla in 2008 and expressed his delight at agreeing the extension.
"Being at the club for so many years is a dream,'' Alves 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.''
Alves is currently with the Brazil squad ahead of this weekend's international friendly against Scotland in London.