despite finishing with just nine men the spanish side clinched top spot in group g and ended the hosts' hopes of advancing.
cristiano ronaldo scored twice as real madrid cf sealed top spot in uefa champions league group g with a comfortable victory at afc ajax, despite having both xabi alonso and sergio ramos sent off in the closing stages.
with second-placed ac milan winning 2-0 at aj auxerre in the section's other match, ajax now trail the italian side by four points and cannot advance whatever the result in their final game at san siro on 8 december. madrid, meanwhile, will can look ahead with confidence after first-half goals from karim benzema and álvaro arbeloa, supplemented by a second-half double from ronaldo, the second from the penalty spot, clinched top spot in style.
madrid started on the front foot, and toby alderweireld had to block a rasping goalbound shot from pedro león after only five minutes before denying mesut özil in similar fashion. maarten stekelenburg then palmed away a powerful drive from benzema after the french striker had worked a one-two with ronaldo.
the breakthrough came on 36 minutes when alonso played a long pass into the ajax box, and özil brilliantly laid the ball off in mid-air for benzema to calmly place a shot high to stekelenburg's left. a minute before half-time josé mourinho's men doubled their advantage with another fine strike. ronaldo's free-kick from the edge of the box struck the ajax wall, but the ball broke to arbeloa who hit a swerving shot that deflected off mounir el hamdaoui to leave stekelenburg helpless.
immediately after the restart ronaldo exchanged passes with benzema then burst beyond the home back line, but somehow stekelenburg deflected his low effort onto the bar. next up was benzema, who shot over after wriggling free inside the area.
the spanish side continued to dictate the game, holding possession and frequently breaking from midfield. with the 70-minute mark approaching last season's dutch runners-up had their first effort on target, but iker casillas got down smartly to save jan vertonghen's shot.
moments later madrid struck again. ángel di maría, having replaced pedro león minutes earlier, delivered an angled pass to ronaldo, who sent a sweet left-foot finish beyond stekelenburg. özil almost made it four a few minutes later but the busy ajax goalkeeper parried his low free-kick.
ronaldo then took his uefa champions league goal tally to 25 from the penalty spot after urby emanuelson had tripped özil. even the late dismissals of alonso and sergio ramos, who both picked up a second yellow for wasting time, could not take the sheen off a magnificent madrid display.