UX 1515 then 4Y 212 at Munich
Madrid → Munich → Marrakesh
Timetable, Munich time
09:45UX 1515 from Madrid at the gate
08:304Y 212 to Marrakesh leaves the gate
22 h 45 apart on the timetable, overnight
4Y 212 leaves 22 h 45 after UX 1515 arrives on the timetable: more than half a day, so not a connection we count.