David Villa has called it a career.

Villa announced his retirement from soccer on Twitter Wednesday, ending a 20-year career that included club success with Barcelona and international glory with Spain

The 2010 World Cup champion and New York City FC standout will leave his current club, Vissel Kobe in Japan and embark on another journey in soccer, which includes the sporting side of Queensboro FC. That expansion team will play in the USL Championship starting in 2021, it was announced Tuesday.

“After 19 years as a professional, I have decided to retire from playing football at the end of this season,” Villa said on Twitter. “Thank you to all the teams, coaches and teammates that have allowed me to enjoy this dreamed career. Thank you to my family, that has always been there to support me.

“It is my objective to put the cherry on top by winning the Emperor’s Cup with on January 1st. From then on, I will continue to enjoy football through all the projects that we’re currently developing with DV7 group. Thank you for all the love.”

The 37-year-old Villa played for NYCFC from 2015-2018.