In his last year playing for Real Madrid, Pepe had an injury-riddled season, in which he made 13 appearances, when Madrid won their 33rd La Liga and the 2016–17 UEFA Champions League, defeating Juventus in the final at Principality Stadium, Cardiff.