Andrea Pirlo has announced his retirement from soccer at the age of 38.

New York City FC were knocked out of the MLS playoffs on Sunday.

“Last match in MLS. As my time in NYC FC comes to an end, I want to thank everybody for the kindness and support they have shown me in this incredible city,” Pirlo tweeted.

“Not only my adventure in New York comes to an end but my journey as a football player as well. Thank you to the amazing supporters, thank you to the coaching staff … and thank you to my team-mates.”

Pirlo moved to New York City FC in July 2015, playing for the MLS side for two seasons.