A codeshare agreement allows two or more airlines to share the same flight.

American Airlines Launches ‘Codeshare Deal’ with Royal Air Maroc
Royal Air Maroc airplane