FR 5316 then FR 6721 at Madrid
Rome → Madrid → Marrakesh
Timetable, Madrid time
08:20FR 5316 from Rome at the gate
20:25FR 6721 to Marrakesh leaves the gate
12 h 05 apart on the timetable
FR 6721 leaves 12 h 05 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.