Messi, whose future has been the subject of speculation this summer, leaves as a free agent after the expiry of his contract.
Lionel Messi will end his 20-year career with Barcelona after the Argentine superstar failed to reach an agreement on a new deal with the club, a decision certain to spark a high-stakes scramble for the signature of a player widely regarded as one of the greatest of all time.
“Although an agreement has been reached between FC Barcelona and Leo Messi it cannot be formalized due to economic and structural obstacles,” said a statement from the club.
“Faced with this situation, Lionel Messi will not remain linked to Barcelona. Both sides deeply regret that the wishes of both the player and the club cannot come true.”
Six-time Ballon d’Or winner Messi, 34, last month finally landed a major international trophy with Argentina when they beat rivals Brazil to win the Copa America.
But there had been doubts over his continuation at Barcelona ever since he tried to leave last August as a free agent, citing a clause in his contract and saying the club had had “no project or anything for a long time”.
Messi, Barca’s all-time top scorer and appearance maker, ultimately agreed to see out the final year as the club threatened to go to court.
The player, who signed his first contract with Barcelona in 2000 on a napkin when he was just 13, has been a free agent since June 30 when his old agreement expired after Messi had played 788 games for the club.
Last season was a comparative disappointment as the club could only land the Spanish Cup and exited in the last 16 of the Champions League, which they last won back in 2015.
There had been speculation that Messi would sign on for two years and then potentially head to Major League Soccer, although a friend and former Barca teammate Neymar has said he would love to team up with him again at Paris Saint Germain.