FR 573 then I2 1857 at Madrid
Porto → Madrid → Marrakesh
Timetable, Madrid time
22:05FR 573 from Porto at the gate
19:10I2 1857 to Marrakesh leaves the gate
21 h 05 apart on the timetable, overnight
I2 1857 leaves 21 h 05 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.