FR 2062 then FR 6721 at Madrid
Palma de Mallorca → Madrid → Marrakesh
Timetable, Madrid time
21:35FR 2062 from Palma de Mallorca at the gate
20:25FR 6721 to Marrakesh leaves the gate
22 h 50 apart on the timetable, overnight
FR 6721 leaves 22 h 50 after FR 2062 arrives on the timetable: more than half a day, so not a connection we count.