Barcelona coach Xavi will remain at the club until at least the end of his contract in June 2025 after changing his mind that this would be his last season.
The 44-year-old announced in January he would step down as boss this summer.
But, with president Joan Laporta keen for him to remain, the former Barcelona and Spain midfielder has performed a U-turn.
Laporta said: “We know that he made some statements in the middle of the season, but today we have the good news that he is staying and he has conveyed to me the enthusiasm and confidence he has in the project.”
Xavi took charge in November 2021 after leaving Qatari club Al Sadd and guided Barca to the Spanish title in his first full season in charge in 2022-23.
However, they are 11 points behind La Liga leaders Real Madrid with six games left to play in the current campaign.
Barcelona exited the Champions League last week following a quarter-final defeat by Paris St-Germain.
Xavi, who won 25 honours during an illustrious playing career at Barcelona, had said he felt “liberated” following the announcement that he would step down from the role at the end of the season.