"After Puyol and Xavi, this afternoon it has been Leo Messi's turn. The Argentinean star, accompanied by his father, has signed an extension to his contract with the club until June 30, 2018," said a statement on the club's website.
"The contract was signed in the Barcelona offices with president Sandro Rosell, vice-president Josep Maria Bartomeu and sporting director Andoni Zubizarreta all present."
The contract retains the same 250 million euros (335 million dollars) buy-out clause as his previous deal and Messi will reportedly earn a net salary of 11 million euros (14.75 million dollars).
It is the sixth time in eight seasons that the Argentine has negotiated a new deal with Barca with the Spanish league leaders understandably keen to tie their talismanic forward down to a long-term deal.
Messi broke an all-time European record on his way to scoring 91 goals in 2012, surpassing the previous record of 85 scored by German Gerd Muller in 1972.
And the 25-year-old has shown no signs of slowing down, with 10 goals in eight outings since the turn of the year as Barca have opened up a nine-point gap at the top of La Liga.