BARCELONA: Spanish World Cup winner Juan Mata retired from football on Wednesday at the age of 38.

The former Chelsea and Manchester United playmaker left Australian side Melbourne Victory in September.

ā€œSometimes, to love... is to let go. Thanks football,ā€ Mata wrote on social media as he announced his retirement.

Mata was part of the Spain squad that won the 2010 World Cup in South Africa and the 2012 European Championship.

The midfield maestro broke through at Valencia, where he won the Copa del Rey, before joining Chelsea in 2011.

Mata won the Champions League in 2012 with the London club among other trophies and later signed for Manchester United in 2014, before heading to Turkish club Galatasaray, Japanese side Vissel Kobe, Western Sydney Wanderers and finally Melbourne Victory.

ā€œFootball will never leave my life,ā€ added Mata on his website.

ā€œThere are so many ways to continue loving the game, so many ways to keep using it as a vehicle for development.

ā€œI may stop playing professionally, but I will never stop being a footballer.ā€

Mata remains involved with Melbourne Victory after taking a minority ownership stake in the club.

The Spaniard also has stakes in Formula One team Alpine and Major League Soccer club San Diego FC.

In 2017 Mata co-founded charity Common Goal, donating at least one percent of his salary to good causes.