BARCELONA, Spain -- Lionel Messi considered leaving Barcelona after being targeted by Spanish tax authorities in the early 2010s.

Messi said in an interview with Catalan radio station RAC1 on Wednesday that he felt he wasn't treated well in Spain and didn't want to stay in the country after being accused of not paying his taxes properly.

"I thought about leaving," Messi said. "Not because I wanted to leave Barcelona, but because I wanted to leave Spain. I never had an official offer, because everyone knew that I wanted to be with Barcelona, but it was a situation that went beyond what I felt about the club."

Messi's problems with the Spanish authorities started in the 2013-14 season and he eventually received a suspended 21-month jail sentence after being found guilty of defrauding tax authorities of 4.1 million euros (then $4.6 million).

"It was a very difficult time for me and for my family," he said. "A lot of people didn't know exactly what was going on."

Messi said he felt he was used as an example by Spanish tax authorities because he was the first top player to be targeted.

"It was really difficult because I was the first one," Messi said. "They started with me and then went after everyone else."

Several other players were later accused of wrongdoing by Spanish tax authorities, including former Real Madrid forward Cristiano Ronaldo.

Messi said he wished Ronaldo would have stayed at Real Madrid because his presence was good for the Spanish league and the rivalry with Barcelona.

Messi also reiterated his wish to have Neymar back with the club, and that he believed the Brazil forward would have ended up playing for Real Madrid if he didn't join Barcelona.

"I thought (Real Madrid president) Florentino (Perez) would have done something to sign him," Messi said.

Messi said when former teammate Xavi Hernandez decides to coach Barcelona the team will play similarly to how it did under Pep Guardiola, but he doesn't know if he will still be playing when that happens.

Messi said his goal is to retire with Barcelona, and he feels the club should have won another Champions League title in the last few years.

The 32-year-old Argentina playmaker said he is getting to an age in which everything becomes harder on his body, but he will continue evaluating his playing condition year by year.

On Thursday, Messi is expected to attend the opening Cirque du Soleil show that was inspired by him.