Lyon had a 1-0 lead from the first leg and goes through to the quarter-finals 2-1 on aggregate.
This is the sixth season on the trot that Real Madrid goes out at this stage of the Champions League.
Cristiano Ronaldo put Real Madrid in the lead in the 6th minute but a goal from Miralem Pjanic secured a draw for Lyon.