Basketball legend Pau Gasol has on Tuesday evening announced his retirement from the game, ending a career that lasted more than over twenty years which earned him two NBA titles and a world championship gold with Spain’s national team.

The 41-year-old Gasol had already announced his farewell from international basketball in August after Spain lost to the United States in the quarterfinals of the Tokyo Games, which marked his fifth Olympics.

Gasol had been with Spanish club Barcelona since February. His career had stalled before that because a left-foot stress fracture that lingered and kept him from playing for nearly two years.

“I’m going to retire from professional basketball,” Gasol said. “It’s a difficult decision after so many years, but it’s a decision that I really thought over.”

The retirement announcement was made in an event at a opera house in Barcelona attended by former teammates and family members, including his wife, young daughter and brother Marc.

Gasol won two NBA titles with the Los Angeles Lakers, in 2009 and 2010, and averaged 17 points and 9.2 rebounds in 1,226 regular-season games with five NBA teams, including the Memphis Grizzlies, Chicago Bulls, San Antonio Spurs and Milwaukee Bucks. He was the No. 3 pick in the 2001 NBA draft, being selected by Atlanta and traded to Memphis.