FR 9673 then I2 1857 at Madrid
Rome → Madrid → Marrakesh
Timetable, Madrid time
23:30FR 9673 from Rome at the gate
19:30I2 1857 to Marrakesh leaves the gate
20 h apart on the timetable, overnight
I2 1857 leaves 20 h after FR 9673 arrives on the timetable: more than half a day, so not a connection we count.