FR 5996 then FR 6791 at Madrid
London Stansted → Madrid → Marrakesh
Timetable, Madrid time
19:10FR 5996 from London Stansted at the gate
18:10FR 6791 to Marrakesh leaves the gate
23 h apart on the timetable, overnight
FR 6791 leaves 23 h after FR 5996 arrives on the timetable: more than half a day, so not a connection we count.