FR 6723 then FR 267 at Madrid
Marrakesh → Madrid → Valletta
Timetable, Madrid time
11:20FR 6723 from Marrakesh at the gate
09:45FR 267 to Valletta leaves the gate
22 h 25 apart on the timetable, overnight
FR 267 leaves 22 h 25 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.