When Jose Mourinho waved goodbye to Real Madrid in the summer of 2013, Carlo Ancelotti took over as the new head of Real Madrid. While Diego Lopez was firmly in the starting goalkeeper's seat, Casillas was given a chance to feature in the cup competitions. In both the Copa del Rey and the Champions League, Casillas' performances were solid, especially in the Copa del Rey, where he led Real Madrid to the final with a brilliant shutout record and beat Barcelona 2-1 in the final to win the title. In the Champions League, Casillas also led his team all the way to the final.
It is worth mentioning that from November 27, 2013 to February 26, 2014, Casillas did not concede a goal for 952 consecutive minutes in the Copa del Rey and Champions League tournaments, setting a record for the longest consecutive shutout in his career. Eventually, Casillas led Real Madrid to the 2014 Champions League title as captain. Despite conceding first in the final due to a mistake on the counterattack, it did not detract from the final Champions League-winning moment of his career.
In the summer of 2014, the 33-year-old Casillas once again represented Spain in the World Cup, however, the overall performance of the Spanish team declined significantly. In the first match of the group stage, the gate guarded by Casillas was broken by the Netherlands five times, and after the match he apologized for his poor performance, saying it was the worst of his career. Spain then went out early in the group stage with a 0-2 defeat against Chile in their second match. The tournament also became Casillas' farewell game at the World Cup, as he ceded the starting goalkeeper's position to Reina.
In the 2014-2015 season, Diego Lopez moved to AC Milan and Costa Rican goalkeeper Navas joined Real Madrid. This season, Casillas once again took his place as the starting goalkeeper. Although he was instrumental in helping Real Madrid win the European Super Cup and the Club World Cup, his form was unstable, and eventually Real Madrid's season was a complete failure.On May 23, 2015, in the final round of La Liga, Real Madrid won 7-3 against Getafe, which was also the last battle of Casillas' career at Real Madrid.On July 12, 2015, Casillas held a press conference to formally announce his departure from Real Madrid. In this conference, he alone to bear the interview, a few times in tears on the scene, unable to part with the club that has played for 25 years.
On the same day that Casillas left Real Madrid, Portuguese Premier League giants Porto officially announced the signing of the legendary goalkeeper. The Real Madrid hierarchy was criticized due to Casillas' departure. Casillas' parents even claimed that he was forced to leave Real Madrid, and club president Florentino Perez even received calls from fans demanding his resignation. Meanwhile, Barcelona legend Xavi also left Camp Nou in the same summer. As a former national teammate, Xavi supported Casillas, claiming that Real Madrid didn't appreciate his contribution to the club. Later, Casillas revealed in an interview that he initially left Real Madrid because he couldn't reach a consensus with the club for a long time and Porto gave him something that Real Madrid didn't, and he was willing to take on a new challenge in the last years of his career.
After joining Porto, Casillas quickly became the team's main goalkeeper, the performance is noteworthy. 2016 summer, although Casillas was selected for the Spanish team to play in the Euro list, but his starting position has been replaced by De Gea. In the end, Spain stopped in the round of sixteen, and Casillas did not get a chance to play in this Euro. Subsequently, he announced on social media to withdraw from the Spanish national team, his total number of national team appearances fixed at 167 times, a total of 2 times for the Spanish team won the European Cup and a World Cup champion. To date, Casillas has made the second most appearances for the Spanish national team behind Ramos.
In the 2016-2017 season, Casillas set a career record for the most league shutouts in a single season, completing 19 shutouts.On March 15, 2017, Casillas, who started in Porto's Champions League one-eighth final second leg against Juventus, surpassed Maldini for the most European appearances.In the summer of 2017, Casillas signed a contract extension with Porto to complete a contract extension and assisted Porto to win the Portuguese Premier League title in 2018, his first title with Porto.At the end of the 2017-2018 season, Porto renewed Casillas' contract again for another year.In the 2018-2019 season, Casillas once again appeared in the UEFA Champions League with Porto, thus surpassing Giggs to become the first player in history to play in 20 consecutive seasons in the UEFA Champions League League.On March 20, 2019, Porto renewed Casillas' contract on a 1+1 basis. At the same time, Porto signed back Pepe, Casillas' old teammate from his Real Madrid days, in January 2019, and the two played alongside each other again at Porto.