On 16 January 2014, Xavi made his 700th appearance for the first team against Getafe in the Copa del Rey. For the first time in five years, Barcelona ended the season without a major trophy; they were defeated in the Copa del Rey final by Real Madrid with Gareth Bale scoring a late winner, and lost the league in the last game to Atlético Madrid.
In June 2014, it was announced that Xavi would be leaving the club. On 22 July, however, after talks with newly appointed manager and former teammate Luis Enrique, Xavi decided to stay at Camp Nou for one more season. He was also appointed as club captain. On 25 April 2015, Xavi made his 500th La Liga appearance, becoming the eighth player in history to do so. On 4 June, a farewell event was held at Barcelona for Xavi with players, managers, friends and family paying tribute to him.
On 5 August 2014, following the 2014 World Cup where Spain were eliminated at the group stage, Xavi announced his retirement from international football, having made 133 appearances in a 14-year period. Spain's World Cup-winning manager Vicente del Bosque paid tribute, stating that Xavi was "a key part of the team's style of play" and "he was more important to us than even the manager", also adding, "We will miss him both on and off the pitch. He is a player who we hold in great esteem both personally and as a player. He is and always will be a person and a player who is greatly valued by the federation, the coaching staff and by myself."
In November 2014, Xavi appeared in FIFA's "11 against Ebola" campaign with a selection of top football players from around the world, including Cristiano Ronaldo, Neymar, Gareth Bale and Didier Drogba. Under the slogan "Together, we can beat Ebola", FIFA's campaign was done in conjunction with the Confederation of African Football (CAF) and health experts, with the players holding up 11 messages to raise awareness of the disease and ways to combat it.