FR 6723 then MS 754 at Madrid
Marrakesh → Madrid → Cairo
Timetable, Madrid time
22:15FR 6723 from Marrakesh at the gate
14:50MS 754 to Cairo leaves the gate
16 h 35 apart on the timetable, overnight
MS 754 leaves 16 h 35 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.