Pepe is reportedly poised to sign a new contract with Real Madrid before the end of the month.
The Portuguese international's current deal at the Bernabeu will expire at the end of the season and it had been claimed that he would be allowed to leave on a free transfer next summer.
However, the 33-year-old remains a key figure with Los Blancos, and according to Marca, the centre-back is heading for an extension which will run until the summer of 2019.
Pepe, who moved to the Bernabeu from Porto in 2007, has made 317 appearances in all competitions for Real Madrid, winning two Champions League titles and two La Liga crowns in the process.