Barcelona coach Frank Rijkaard is to leave his post at the end of the season and will be replaced by the club's reserve team coach Josep Guardiola.
Former Dutch international Rijkaard, 45, took charge at the Nou Camp in 2003 and won La Liga in 2005 and 2006, as well as the Champions League in 2006.
But Barca have not won a trophy since and currently lie third in the table.
Guardiola, 37, played for Barca for 17 years from 1984-2001 before returning to coach their reserves in 2007.
The announcement came less than 24 hours after Barcelona were thumped 4-1 by bitter rivals and newly-crowned La Liga champions Real Madrid.
Barca president Joan Laporta confirmed Guardiola's appointment at a press conference, saying: "The administration of the club has decided that at the end of this season Frank Rijkaard will cease to be the coach of Barcelona and the position will be occupied by Josep Guardiola.
"Josep has the knowledge, the optimism and the self-confidence to achieve success."
Guardiola, who will officially take charge on 30 June, is a Barca legend who was captain when they won the European Cup for the first time in 1992, and also collected six league titles while at the Nou Camp.
With Barca set to finish trophyless for a second successive campaign, there had been constant speculation over Rijkaard's future and former Chelsea boss Jose Mourinho, Villarreal coach Manuel Pellegrini and Michael Laudrup of Getafe had all been linked with his job.
Spanish football expert Graham Hunter told BBC Radio 5 Live: "The decision to sack Rijkaard has been building for the majority for the season.
"The directors had been losing faith in him, and rightly so, for several months. In my view, the time was right to remove him in January - trophies could have been won if that action was taken.
"A large majority of the board wanted Mourinho to replace him but Laporta is the president and said he wanted his own man, who is Guardiola.
"I think they have made a bad decision and they will regret it.
"What you need in that dressing room is experience at man management. Rijkaard has failed in the last few months because of poor individual man-management and Guardiola cannot have the skills yet with his limited experience."