FR 2437 then FR 9430 at Madrid
Rome → Madrid → Marrakesh
Timetable, Madrid time
09:00FR 2437 from Rome at the gate
22:40FR 9430 to Marrakesh leaves the gate
13 h 40 apart on the timetable
FR 9430 leaves 13 h 40 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.