LEGEND - FRANCE - CLUB - Zinedine Zidane replaces Rafael Benitez as Real Madrid coach
Spaniard Benitez, 55, was relieved of his duties following a meeting of the club's board on Monday.
B team coach Zidane, 43, has been made first-team boss, but the length of his contract has not been made public.
The World Cup winner said: "I am going to put my heart and soul into this job so that everything works out well."
Benitez's final game was Sunday's 2:2 draw with Valencia, which left them third in La Liga, four points behind leaders Atletico Madrid.
Zidane, whose first game in charge will be on Saturday against Deportivo La Coruna at the Bernabeu, is the 11th coach to be appointed in Florentino Perez's 12 years as club president.
'It's an emotional day'
Zidane thanked Perez for giving him the opportunity to train the "best club in the world with the best fanbase in the world".
The Frenchman added: "I want to do my very best to ensure that this club at the end of the season will have a trophy.
"It is an important day for me, it's an emotional day, even more emotional than the day I signed as a player for the club.
"I will be working hard with all the players and I think it will go well.
I will put all the heart I have into this job for the club.
Thank you very much."
Why sack Benitez?
Perez is yet to explain why the board of directors took the "difficult" decision to dismiss Benitez, who once coached the club's youth teams.
But he acknowledged his "dedication" and called the Spaniard a "great professional and a great person".
Benitez lost only three of his 25 games and also took Real into the last 16 of the Champions League with two games to spare.
A thumping 8:0 home win over Malmo and a 10:2 victory against nine-man Rayo Vallecano were amongst his most notable successes.
But it would seem a combination of factors led to his downfall, among them a 4:0 home defeat by Barcelona in November and reports of a rift with star forward Cristiano Ronaldo.
The right replacement?
Zidane has no experience of managing at the top level, but he has long been seen as a future Real boss.
He has been coach of the club's B team, who are second in the Spanish third tier, since 2014 and was a key member of the backroom staff under Carlo Ancelotti, who led Real to a 10th European Cup title.
During his playing career, Zidane was one of Real's key 'Galacticos', a label given to the expensive players signed by Perez during his first spell as president in the early to mid-2000s.
In 2001, Real paid Juventus a then world record fee of £45.8m for the midfielder, who had won the World Cup and European Championship.
Zidane helped Real win the league in 2003 and was named Fifa world player of the year for a third time.
But perhaps his defining moment for the club came during the 2002 Champions League final, when he scored a stunning volley to give his side a 2:1 win over Bayer Leverkusen at Hampden Park.
He retired from football after the 2006 World Cup final, when he was sent off in extra time for headbutting Italy's Marco Materazzi in the chest.
'The best person for the job'
David Beckham, who played alongside Zidane at Real, thinks his former team-mate will be a big hit.
"Does it get any better than this?" he wrote on his Instagram account.
"A man that has been the best at a game we all love taking over a club that myself and many more people love."
Beckham praised Zidane's "drive" and "passion", adding he "does not accept failure on any level" and is the "best person for the job".
Xabi Alonso and Ronaldo, two former Real players, wished Zidane "luck", as did ex-Chelsea striker Didier Drogba.