A second-half blitz in front of 93,000 fans at Los Angeles Memorial Coliseum saw City secure their first pre-season victory in style.
Real were unable to contain Guardiola's side once they got their noses in front early in the second half.
Manchester City complete Danilo signing
The £28.5 million spent by City on Nicolas Otamendi two years ago now almost seems like small change after City have splashed out around £50 million each on Kyle Walker, John Stones and Benjamin Mendy over the last 12 months.
But after Otamendi pounced from a couple of yards out to smash the ball into the net, the entire complexion of the International Champions Cup encounter changed.
Until that point, Real had been the more dangerous side in an end-to-end encounter, with Isco, in particular, causing City's back five problems with his range of passing.
Manchester City sign Spurs’ Walker for £50m
City's new £32 million keeper Ederson — culpable in last week's friendly defeat to neighbours Manchester United — was forced to produce smart saves to deny Isco, Karim Benzema and Casemiro, with the latter also heading against the post.
Gabriel Jesus and Sergio Aguero both went close at the other end, but once Otamendi found the net in the 52nd minute, on the rebound after Stones's header was saved, City were rampant.
Substitute Raheem Sterling calmly tucked away a lovely through-ball from the impressive Kevin De Bruyne just moments after firing a shot inches wide.
The advantage was then extended to three after Stones scuffed a shot into the far corner from a De Bruyne corner.
City were twice denied a third by the woodwork, with Francisco Casilla producing a stunning finger-tip save to push De Bruyne's free-kick onto the post and then Leroy Sane smashing the ball against the near post within seconds of entering the field.
But the icing on the cake arrived for Guardiola's side in the final 10 minutes, when 17-year-old Spaniard Brahim Diaz cut inside off the right and curled a beauty into the top corner from the edge of the area.
Real grabbed a late consolation when Oscar Rodriguez produced a stunning effort from 30 yards which soared into the top corner.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ