Nice surrendered the lead twice but eventually saw off Stade de Reims 3-2 after extra time to reach the semi-finals of the Coupe de France.
Serbian forward Danijel Ljuboja put Ligue 1 visitors Nice ahead at the Stade Auguste Delaune, but midfielder Romain Amalfitano levelled for the second division side just 60 seconds later.
Gabon international Eric Mouloungui restored Nice’s lead two minutes into the second half.
This time the lead lasted 11 minutes before Odair Fortes equalised for the hosts.
Neither side were able to find a way through in the final 30 minutes.
With the match going to extra-time, Reims remained in with a chance of an unlikely semi-final berth.
But Mouloungui was on target with his second of the match in the 112th minute, scoring the winner that sent Nice into the last four.
In Wednesday’s quarter-final matches, Chambery host Angers, Le Mans travel to Paris Saint-Germain and Lille are at home to Lorient.