Dani Alves has agreed a new contract with Barcelona that could keep him at the club until 2018, it has been confirmed.
The Brazilian was out of contract this summer and seemed set to leave after lashing out at the club's board, but having helped the Catalan outfit claim a historic treble this season will now remain at the Nou Camp.
Manchester United and Inter Milan were amongst the clubs interested in taking Alves on a free transfer, but the full-back reportedly turned down a 'super offer' from the Red Devils in order to stay put. The announcement comes just 24 hours after Barca confirmed they had signed Aleix Vidal from Sevilla in a deal worth £13 million.
Barcelona confirmed the news with a statement on their website this morning. It read: "FC Barcelona has announced that Dani Alves has accepted its proposal for the renewal of his contract, which expires on June 30 of this year.
"The new agreement binding both parties will be for a further two seasons, through to 30 June 2017, with the option of a third additional season."
The reigning European Champions also extended the deals of Jordi Alba and Pedro this week.
Alves had previously hinted he was open to a move to Inter Milan after hitting out at Barcelona's board over what he felt were underhanded tactics at the negotiating table.
"I have come out to talk today about a lack of respect towards me and like anyone else, I have my limits," the 32-year-old said last month. "I don't want to have to talk about these things because I prefer to do my talking out on the pitch.
"But there has been a lot of rubbish written which I have been forced to put up with and when push comes to shove, I have to come out and defend myself, and say what I have to say. I am with the team 200 percent but with the board, about 10 percent -- as it is, I have one foot, half a body and almost my head out of the club."
The news is a huge blow for Manchester United, who had identified Alves as their top target at right back. The Red Devils are in the market for a new full-back and had been linked with a move for Nathaniel Clyne of Southampton but he is reportedly close to penning a new deal at St. Mary's.
The Guardian report that Manchester United had made Alves one of their top targets this summer and believed they were in pole position to sign him. However, the former Sevilla player given until 5pm on Tuesday and now he has decided to stay put.
Alves has been a phenomenal player for Barcelona - in the last six seasons only Messi and Ronaldo have provided more assists than him in La Liga.
It is just reward for the former Sevilla man that he has been handed a two year deal with the option of 12 months more. Despite his age he is still incredibly mobile and he enjoyed one of his finest seasons to date as Barcelona conquered Europe. The Catalan club's gain is certainly Manchester United's loss.