Barcelona manager Xavi Hernandez said on Saturday that he had decided to step down at the end of the season after his side lost 5-3 at home to Villarreal in LaLiga, their third defeat in their last five games in all competitions.
"I'd like to announce that as of June 30 I will not continue as Barca coach," he told a press conference.
Barcelona are third on 44 points, 10 behind leaders Real Madrid and eight adrift of second-placed Girona.
They were thrashed by Real in the Spanish Super Cup final earlier in January and knocked out in the Copa del Rey quarter-finals by Athletic Bilbao on Wednesday.


Norway turn World Cup heartbreak into huge celebration
Ex-Croatia head coach Slaven Bilic returns to role
India beat England in historic first women's Test at Lord's
Sinner beats Zverev to retain Wimbledon title after marathon battle
Conor McGregor's knee 'never an issue' ahead of UFC 329, says coach