Legia had one back in the 40th minute, however, when Vadis Odjidja found the back of the net with a brilliant strike from distance, before Miroslav Radovic levelled the scores just before the hour mark.
The home side than took the lead in the 83rd minute through Thibault Moulin, but Real Madrid secured a share of the spoils two minutes later when Mateo Kovavic swept home from inside the box.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
LEGIA: Malarz; Bereszynski, Rzezniczak, Pazdan, Hlousek; Kopczynski, Moulin, Odjidja; Guilherme, Nikolic, Radovic
REAL: Navas; Carvajal, Varane, Nacho, Coentrao; Kroos, Kovavic, Bale; Ronaldo, Benzema, Morata
© Getty Images