FR 7466 then IB 1853 at Madrid
Tangier → Madrid → Marrakesh
Timetable, Madrid time
14:05FR 7466 from Tangier at the gate
11:40IB 1853 to Marrakesh leaves the gate
21 h 35 apart on the timetable, overnight
IB 1853 leaves 21 h 35 after FR 7466 arrives on the timetable: more than half a day, so not a connection we count.