The Gabon international tied things up early in the second half, but Lucas Vazquez restored the lead inside the final 10 minutes. Real takes on Borussia Dortmund in the Champions League at 2:30 PM ET so don't miss it.
"I also scored; I helped the team to win with a beautiful goal".
Real Madrid were extremely quick out of the traps.
He was rewarded after just eight minutes when Mayoral opened the scoring following a pass from Isco.
Madrid was in control throughout the match on Wednesday, but Dortmund threatened in counterattacks with their speedy forwards. The ceremony gets underway in Paris, with the winner expected to be confirmed later this evening.
Mayoral wasted no time in rewarding Zidane's faith, dinking Isco's flick-on - which he may have intended to control for himself - over the onrushing Roman Burki to convert his first opportunity.
While Madrid dominated the first and last quarters, it was the visitors - led by the dangerous Pierre-Emerick Aubameyang at the number nine position - who kept Real under pressure between the 25th and 65th minute of the game. With Dani Carvajal, Sergio Ramos, and Casemiro suspended, and Jesus Vallejo injured, Zinedine Zidane is left with a scarcity of defenders.
Also, Liverpool, Porto and Shakhtar Donetsk, all won on to clinch the last remaining berths in the round of 16 of the tournament. An assured performance as he continues to return to full sharpness after a lengthy absence. We need the street players.
He wrote alongside the image: "Flying in style!"
"He is great player and with his speed he is always a dangerous player", said Dortmund boss Peter Bosz.
"He isn't a player for Madrid". But the Bernabeu saw more of the former this evening. "We showed at times that we can play football very well".
Slotted into the centre of a back three in the closing stages, as Zidane tested out different formations with a view to the visit of Sevilla. "I think that's good for our confidence". Yet he faded from the match quickly, and a momentary lapse of concentration allowed Marcel Schmelzer to nab the ball and cross for Dortmund's opening goal. Even though Cristiano Ronaldo, 32, came in with a late goal at minute 80, it wasn't enough to spark a rally, and Los Blancos walked away with a 3-1 loss.