City will take a slender lead to Spain after winning the first leg 4-3, with more of the same likely in eight days' time.
It was a game that had everything in a ridiculously entertaining 90 minutes at the Etihad.
City held a two-goal advantage on three separate occasions, but were pegged back each time by a Real Madrid side who refused to buckle on the night.
City couldn’t have asked for a better start with a goal inside two minutes to send a raucous Etihad wild on a bright, sunny evening in East Manchester.
Looking sharp and focused from the off, the ball was played out to Riyad Mahrez on the right and the Algerian waltzed past a couple of challenges before picking out De Bruyne’s superbly timed late run and the Belgian guided a low header past international team-mate Thibaut Courtois to make it 1-0.
But it got even better just nine minutes later.
Phil Foden carried the ball down the left before playing it back to De Bruyne who crossed into the feet of Gabriel Jesus who took full advantage of Alaba’s poor touch to slot the ball past Courtois and send the Etihad into raptures.
It was the start Pep Guardiola must have dreamed of.
The Spaniards may have been on the ropes, but City gifted a number of opportunities that were largely self-inflicted errors that could easily have been punished.
Madrid had shown enough intent to cause concern and on 33, Karim Benzema – playing like a man possessed – turned Ferland Mendy’s cross home with the deftest of volleys.
There were more thrills and spills, but no further scoring in a first half that fairly flew by.
The second-half began as the first had with City denied by a coat of paint with two minutes of the restart as Mahrez raced clear only to see his shot strike the post and Dani Carvajal blocked Foden’s follow-up.
It was a game you daren’t take your eyes off!
City’s two-goal advantage would last just three minutes as Vinicius Junior span off Fernandinho just inside his own half before racing towards goal down the left flank and eventually tucking a low shot past Ederson.
It was perhaps one of the greatest Champions League games the Etihad – or maybe any other stadium – had ever witnessed, and it was still far from finished.
For the third time in this thrilling contest, City went two goals clear in the tie when, on 74 minutes, Oleks Zinchenko cleverly cut inside a challenge on the edge of the box and was brought down.
The referee played the advantage and while a couple of Real defenders seemed to stop, Bernardo picked up the loose ball and thumped it into the top left corner to make it 4-2.
Back came Real Madrid.
A cross into the City boss saw the ball strike the arm of Aymeric Laporte as he went up for a header and the referee pointed to the spot – Benzema, in this form, was never going to miss and he impudently dinked the penalty home to make it 4-3 with 82 minutes on the clock.
City tried to restore that elusive two-goal lead in the time that remained and came mightily close to doing just that with a couple of back post crosses that Ruben Dias almost connected with, but nobody was complaining when the final whistle went and the teams left to a richly deserved standing ovation.
What it means…
With away goals no longer counting double, the bottom line is that City have a one-goal advantage going into the second leg.
“It was a good game of football, both teams have an incredible amount of quality players on the pitch with incredible personality to play.
“The result is what it is, we won and now we rest and then it’s Leeds and we are going to travel to Spain next week and try and do a good result."
It’s back to Premier League action this Saturday as City make the short journey over the Pennines to face Leeds United at Eland Road.
The match kicks off at 17:30 (UK).
Real Madrid: Courtois, Carvajal, Militão, Alaba (Nacho 46), Mendy, Valverde, Kroos, Modric (Ceballos 79), Rodrygo (Camavinga 70) Benzema, Vinícius Júnior (Asensio 88)
Real Madrid conceded twice in the opening 11 minutes of a Champions League game for the first time in their history.
At 21, Phil Foden is the second English player to score a Champions League semi-final goal before turning 22.
This was the sixth time Real Madrid have lost the first leg of a Champions League semi-final - they've failed to reach the final on any of the previous five occasions they've lost in the first leg.
News about Man City v Real Madrid
Dias: The win was the most important thing
Ruben Dias says simply coming away with a positive result, regardless of the margin of victory, was the main priority in our Champions League semi-final first leg against Real Madrid. Watch more.
Guardiola 'incredibly happy’ with performance
Pep Guardiola says he has no complaints after watching his side win a seven-goal classic against Real Madrid in the first leg of the Champions League semi-final. Read more.
Pitcam highlights: City 4-3 Real Madrid
Enjoy City's incredible Champions League clash with Real Madrid from our unique Pitcam angle on CITY+. Watch more.
Bernardo: "We should be proud"
Bernardo Silva felt City were unlucky not to have won the Champions League semi-final first leg over Real Madrid by a greater margin, but feels that there was plenty for the team to be proud of. Read more.
Full-match replay: City v Real Madrid
CITY+ subscribers can enjoy the full 90 minutes of an extraordinary Champions League semi-final first leg. Watch more.
City 4-3 Real Madrid: 'Crazy, breathless stuff' - the media reacts
It was breathtaking, brilliant and mesmerising. Read more.
City 4-3 Real Madrid: Brief highlights
Watch a Champions League thriller with our brief highlights package... Watch more.
City 4-3 Real Madrid: Extended highlights
It is a game that will be long remembered by City fans and football fans in general. Watch more.
All-time Champions League classic at the Etihad | Man City Podcast
An all-time Champions League classic. Manchester City 4-3 Real Madrid, with more of the same likely next week at the Santiago Bernabeu. Watch more.
Guardiola: We know what we have do in Madrid to reach the final
Pep Guardiola says City will seek to raise the level of our performance once again next week in Madrid as we seek to reach a second successive Champions League final. Watch more.
Wright-Phillips: Real triumph shows what City are capable of
City’s thrilling 4-3 victory over Real Madrid demonstrated what Pep Guardiola’s men can do against Europe’s elite, according to Shaun Wright-Phillips. Read more.
City 4-3 Real Madrid: The numbers behind a Champions League classic
A look at some of the best stats to come out of Manchester City’s captivating 4-3 Champions League semi-final triumph over Real Madrid. Read more.
Match gallery: City hold advantage after Real Madrid thriller
Check out the best images as Manchester City beat Real Madrid 4-3 at the Etihad Stadium in a thrilling Champions League semi-final clash, seeing us take a crucial advantage into the return leg next week. View more.
Zinchenko: Plenty of work still to do in Madrid clash
Oleksandr Zinchenko insists there can be no let-up from City in next week’s Champions League semi-final second leg clash with Real Madrid. Read more.
Foden: The plan doesn’t change for Madrid second leg
Phil Foden expects City to go for the win when we lock horns with Real Madrid in the second leg of our Champions League semi-final. Read more.