MADRID (AP) -- Real Madrid picked one of its most successful figures to try to end one of its worst crises.
Zinedine Zidane is returning to coach Madrid, the club he led to three straight Champions League titles before quitting while on top nine months ago.
Madrid announced Monday that Zidane accepted an offer to replace Santiago Solari and signed a contract until June 2022 to try to get the club back on track after a disastrous season.
The coaching change came less than a week after two losses to Barcelona and another to Ajax -- results that eliminated the club from the Champions League and the Copa del Rey and virtually ended its hopes of winning the Spanish league.
"I'm very happy to be back home. I've recharged my batteries and now I'm ready again for the experience of being Real Madrid's coach. I'm motivated to be coaching again," Zidane said. "What I want to do now is return to work and put the club back where it belongs."
Spanish television channel La Sexta was the first to report Zidane's return. The announcement came after the board of directors met Monday in Madrid.
"You have an incredible history with the club, both as a player and as a coach," Madrid president Florentino Perez told Zidane. "We are proud to have you with us again. You represent the grandiosity of this club. Thank you for your loyalty."
Zidane, who won the 2002 Champions League while playing for Madrid, said he was never in doubt after receiving the offer from Perez.
"I love this club, and when the president called me, I couldn't say no," Zidane said. "I'll give everything I have to make this club better."
Zidane quit not long after Madrid won the Champions League title last season, saying that he and the club needed a change in command to keep succeeding. He won nine titles in his first stint with Madrid.
Zidane will be in charge of Tuesday's practice session, and his first game back will be on Saturday at the Santiago Bernabeu Stadium against Celta Vigo. Madrid trails leader Barcelona by 12 points with 11 matches left and is five points behind second-place Atletico Madrid.
"I've been watching the season closely and I'm also not happy with how things have gone," Zidane said. "We have to see what we can (do) to improve and make sure things can be different going forward."
Solari led the team to a 4-1 win at Valladolid on Sunday and was in charge of practice on Monday. The club said it offered him an opportunity to remain in a different position. The former Argentina and Madrid player had been the "B'' team's coach before taking over the main squad in October.
Solari led Madrid to 22 wins, eight losses and two draws in all competitions, and helped the team win the Club World Cup in December.
Zidane's name was a unanimous choice within the club but few thought he would accept returning so soon after deciding to take a break.
The level-headed coach took over in January 2016 and immediately won over the squad with his calm manner and easygoing attitude. In addition to the three Champions League titles, he also led Madrid to the 2017 Spanish league title, the club's first since 2012. His other titles in his first coaching stint included two Club World Cups, two UEFA Super Cups and one Spanish Super Cup.
Shortly after Zidane left, Cristiano Ronaldo left to join Juventus, and Madrid has endured an up-and-down season that led to the humiliating losses to Barcelona and Ajax at the Bernabeu.
Zidane was replaced by Julen Lopetegui, the former Spain coach who was fired before the World Cup for taking the Madrid job. He lasted only a few months at the helm.
Solari took over from Lopetegui as an interim coach and eventually was given a full-time job -- with a contract until 2021 -- after putting the team back on track. Unlike Zidane, though, he struggled to manage the squad and was at odds with some of its key players, including Marcelo and Francisco "Isco" Alarcon.
Jose Mourinho, fired by Manchester United last year, was another strong candidate to replace Solari after succeeding with Madrid in the early 2010s. Other names mentioned included Juergen Klopp, Mauricio Pochettino, Joachim Loew and Antonio Conte, who was highly touted to take over from the fired Lopetegui.
Some even wanted the club to consider former star Raul Gonzalez, who has just started coaching one of Madrid's youth squads.
But it will be the great Zidane at the helm again.
"We'll get back to work and try to do the right things," Zidane said. "We have 11 matches left in the league, then we will start thinking about next year and beyond."