Hosts Morocco needed extra-time to overcome a stubborn Libyan side 3-1 to reach the final of the African Nations Championship (CHAN) in front of a packed crowd in Casablanca.
Ayoub El Kaabi’s seventh goal of the tournament looked like sending Morocco to the final until an error from his keeper Anas Zniti gifted Libya’s Abdoulraham Khalifa an equaliser.
El Kaabi put Morocco 2-1 up in the sixth minute of extra-time with a simple tap-in before Walid El Karti’s penalty put the result beyond doubt.
In Sunday’s final of the tournament for home-based African footballers, Morocco will now face Nigeria who defeated Sudan to book their place in the finals.
Nigeria on Wednesday beat Sudan 1-0 to face hosts Morocco in the final of the 2018 African Nations Championship on Sunday.