FR 5357 then I2 1851 at Madrid
Krakow → Madrid → Marrakesh
Timetable, Madrid time
17:15FR 5357 from Krakow at the gate
10:15I2 1851 to Marrakesh leaves the gate
17 h apart on the timetable, overnight
I2 1851 leaves 17 h after FR 5357 arrives on the timetable: more than half a day, so not a connection we count.