FR 9441 then FR 6721 at Madrid
Lisbon → Madrid → Marrakesh
Timetable, Madrid time
23:15FR 9441 from Lisbon at the gate
21:35FR 6721 to Marrakesh leaves the gate
22 h 20 apart on the timetable, overnight
FR 6721 leaves 22 h 20 after FR 9441 arrives on the timetable: more than half a day, so not a connection we count.