The Argentinian’s previous deal was due to expire in June 2018, but he has committed himself to the Blaugrana until 2021 with a contract worth over £500,000 per week.
A club statement read: “FC Barcelona and Leo Messi have agreed on a contract renewal that will keep the Argentinian at the club until June 30th, 2021.
“The deal will be signed in the coming weeks, when Messi returns to the team for pre-season training.
“The club is very happy with both the renewal and the commitment of Messi, the best player in history, who has played his full professional career at Barca and has led the team to an era of extraordinary success, the likes of which has never been seen in world football.”
Messi made his debut for Barcelona in 2004 and has since racked up 583 appearances across all competitions, scoring 507 goals and assisting in 229.