And despite being linked with a move to Paris Saint-Germain, the Portuguese defender has agreed to a two-year deal with Besiktas, with the option of a third year, according to reports in Turkey.
During his 10 years in Madrid, Pepe played on teams that won three Champions League trophies and three La Liga titles, but had fallen down the pecking order for Zinedine Zidane in recent months in part due to injuries.
However, the 34-year-old changed his mind and joined Besiktas on a free transfer.
The fromer Real Madrid player ended his 10-year stint at the club after being released to become a free agent this summer.
The Portugal defender's signing was announced by the Turkish club on Twitter on Tuesday
He was a part of the Portugal side that finished third in this summer's Confederations Cup in Russian Federation.
He also has the honour of being named man of the match as Portugal beat hosts France in extra time in the Euro 2016 final.
While he is experienced and a strong defender, he is also known to be rather aggressive and violent on field.
The fans will definitely miss his spirited character and his partnership with Sergio Ramos.
A Few More Beautiful Days Before Storms
We have a better chance for more widespread showers and storms on Wednesday , but the rain will keep us in the lower 80s. That's great news with July 4th celebrations and fireworks displays continuing for some towns.
Olivier Giroud 'motivated' to continue at Arsenal
However, Giroud - who signed a contract extension in January - said he wants to stay to help Arsenal fight for more silverware. But he says he wants to win more titles at the club. "The motivation is here, always doing your best".
It is official: Ravi Shastri applies for India coach's job
Kohli must have been a central figure in both Kumble's resignation and Shastri applying for India coach as well. Former Indian cricket team coach Anil Kumble left the position vacant after he resigned on June 20.