UX 1047 then W4 6105 at Fiumicino
Madrid → Rome → Marrakesh
Timetable, Rome time
17:25UX 1047 from Madrid at the gate
16:45W4 6105 to Marrakesh leaves the gate
23 h 20 apart on the timetable, overnight
W4 6105 leaves 23 h 20 after UX 1047 arrives on the timetable: more than half a day, so not a connection we count.