Today is a historic day in Morocco, as Moroccans have to wait for 19 years to see national team reach the final stage of the World Cup.
Unbeaten Tunisia, who have been to four previous World Cup finals and were the first African country to win a game at the finals in 1978, were denied a fifth win in six group matches as Libya's goalkeeper Mohamed Nashnush made a number of key saves.
And five minutes later Gbohouo was at fault again as he started to come for Mbark Boussoufa's corner into the box but then backtracked, allowing Medhi Benatia to volley home and double the lead.
Morocco became the next African nation to qualify for the 2018 World Cup after they defeated Ivory Coast 2-0 in their final Group C clash.
Meanwhile, Tunisia's goalless draw against Libya proved enough to seal their World Cup spot from Group A.
Nabil Dirar opened the scoring for the visitors with a delivery that bounced through the unorganised defence into the far corner of the net.
But Morocco comfortably contained the hosts in a match that threatened to boil over at times with Dirar and Crystal Palace flyer Wilfried Zaha wrestling each other to the ground.
Guinean Ousmane Sidibe conceded an own-goal after 61 minutes and Keita Junior levelled just three minutes after coming off the bench.
That result eliminated the Ivorians from the tournament in Russian Federation in 2018, while Tunisia also qualified at the expense of DR Congo.
DR Congo scored twice in stoppage time through Jonathan Bolingi and Neeskens Kebano to defeat Guinea 3-1 in Kinshasa.
Jonathan Bolingi put the Congolese Lions ahead again two minutes into additional time and Neeskens Kebano added a third goal nearly immediately.