Departing Real Madrid defender Pepe has said he is unhappy with the way he was treated in his final months at the club.
Pepe, 34, has won three La Liga titles, three Champions Leagues and two Copas del Rey since joining Madrid from Porto in 2007.
But with his contract expiring at the end of the month, the centre-back told "El Partidazo" radio show he had made up his mind to move several months ago.
"I decided I was going back in January when I saw the club were not treating me in the best way," he said.
"From there, I prepared myself mentally that my time at Madrid was ending.
"I have given everything for Madrid. They have been 10 years of a lot of pride. I gave my body and soul."
Pepe said he understood Madrid had a policy on contract offers to older players, but said he was frustrated by the club's response when he became embroiled in a dispute with the tax office.
"They offered me a one-year deal," he said. "They do not give two years to players over 33.
"There are ways of talking and negotiating. Real Madrid's behaviour has not been correct.
"The club did not defend me with the tax issue. They knew I was up to date and had no problem.
"That hurt me, as I always fulfilled my obligations, and they made me understand I was not valued."
Pepe also claimed nobody from the club had contacted him as he recovered from an injury suffered against Atletico Madrid in early April.
Although he was fit in the final weeks of the season, he did not feature in either the Liga finale or the Champions League final victory over Juventus.
"I don't want to blame anyone," he said. "What he [coach Zinedine Zidane] is doing for Madrid is spectacular, but there are things I still don't understand.
"I cannot explain to you why I disappeared from the team in the last games. With Zidane we did not say goodbye properly. Zidane and Madrid knew I was going before I did."
Pepe has been linked with both Paris Saint-Germain and Inter Milan, but said he was keeping his options open.
"I have nothing signed with another club," he added. "I could have, but I waited as there were very important competitions to play.
"I am looking forward to playing for another club and giving everything. I have offers, not just PSG or Inter, also for example in England."