Real Madrid ended up drawing 2-2 against Borussia Dortmund after wasting a two-goal lead and that means that Dortmund won the group with Madrid finishing as the runner-ups.
Juventus, Arsenal, Napoli, Leicester and Monaco are the opponents Real could face in the next round, because Los Blancos cannot face neither Barcelona nor Atletico de Madrid until the Quarterfinals.
Juventus are arguably the toughest side of those five teams with Arsenal in a close second place.
It should be noted that Madrid will play the return leg of the Round of 16 away from the Bernabeu, meaning that it will be crucial to keep a clean sheet in the first leg at home.
Had they won the group, Madrid could have faced PSG, Manchester City, Bayern, Benfica, Leverkusen and Porto in the next round, so it's not clear which pot is more manageable for Zidane and his men.
Real Madrid's away draw against Legia Warsaw ended up being the key behind Real's lack of success in this group stage.