Messi had been at the club for 21 years, having joined at the age of just 13.
He played 810 times for the club, scoring 683 goals. He also helped them to 34 trophies.
Messi leaves the club as the best player in the club’s history, and as arguably the greatest player of all time.