SARANSK, Russia — Tunisia captain Wahbi Khazri and Fakhreddine Ben Youssef ensured their nation’s World Cup slump wouldn’t enter a fifth decade.

Khazri’s hard, rising shot in the 66th minute lifted Tunisia to a 2-1 triumph over Panama on Thursday night. It came about 15 minutes after the Rennes striker’s pinpoint pass produced Ben Youssef’s equalizer on a redirection off of his right instep.

“We wanted to snatch the victory and I wanted to score and I did,” Ben Youssef said. “This is great day for Tunisia.”

Panama is still looking for a maiden World Cup victory – or draw, for that matter. But it took its first ever lead in World Cup play in the 33rd minute through an own-goal when Jose Luis Rodriguez’s hard, left-footed shot deflected off of Tunisia’s Yassine Meriah.

Both Group G teams were already eliminated going into the match. Tunisia hadn’t won a World Cup game since a 3-1 victory over Mexico in 1978. The Carthage Eagles then failed to win any of their next 13 World Cup matches, a streak that ended in somewhat expected fashion.

“When we landed in this group we knew very well that our best hope was to come third in this group,” Tunisia Coach Nabil Maaloul said.

Tunisia looked more competitive in losses to England and Belgium than Panama. Tunisia nearly earned a draw with England, but lost on a late goal by Harry Kane.

Tunisia also has more accomplished club professionals in its squad, but it was missing several players because of injuries.

In addition to dealing with the absence of defender Dylan Bronn, Tunisia had to start 33-year-old third-choice goalkeeper Aymen Mathlouthi because its other keepers were injured.

“Thanks to our goalkeeper, we didn’t concede many goals and we got the three points,” Maaloul said. “This is what matters.”

Statistically, Panama was the worst performer in this World Cup, but Coach Hernan Gomez took issue with one reporter suggesting his team was the worst in tournament.

“Please don’t call us the worst team. We are not the worst team. We are a team that is learning and growing,” Gomez said. “You need to respect our team much more. You cannot call us the worst team. That is a lack of respect.”