A scored draw saw both Gabon and Morocco go through to the knockout stages of the African Cup of Nations.
The two sides met in their final group game, and it was an entertaining affair from the get go.
Jim Allevinah gave Gabon the lead early, before Morocco equalised through Sofiane Boufal in the second half.
Gabon took the lead again, with Nayef Aguerd scoring an own goal.
However, an Achraf Hakimi penalty earned Morocco a point, and first spot in the group.
Gabon finished in second, two points behind Morocco, with both through to the next stage.