FR 6723 then AT 5429 at Madrid
Marrakesh → Madrid → Tenerife South
Timetable, Madrid time
22:45FR 6723 from Marrakesh at the gate
12:00AT 5429 to Tenerife South leaves the gatealso VY 5458
13 h 15 apart on the timetable, overnight
AT 5429 leaves 13 h 15 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.