IB 533 then FR 4390 at Lisbon
Madrid → Lisbon → Marrakesh
Timetable, Lisbon time
16:05IB 533 from Madrid at the gate
13:20FR 4390 to Marrakesh leaves the gate
21 h 15 apart on the timetable, overnight
FR 4390 leaves 21 h 15 after IB 533 arrives on the timetable: more than half a day, so not a connection we count.