After decades of wielding political, military and economic power across Africa, France is scaling back its presence on the continent as it faces significant resentment in many of its former colonies. Yet one nation has emerged as an exception: Rwanda.

As other African nations seek to reduce France’s influence, Rwanda is embracing it, celebrating French culture, language and food, despite decades of frosty relations with Paris over its role in the 1994 Rwanda genocide. In return, French companies are scaling up their investments in Rwanda.

The détente, which is being championed by Rwanda’s longtime leader, Paul Kagame, has garnered France a much-needed security partner in Africa and secured Rwanda millions of dollars in development and trade funds. The warming relations are also rare good news for the French president, Emmanuel Macron, who has faced a wave of indignation across Africa and was crushed by the far right in the European parliamentary elections this month.

“We have a partner in Kagame,” Hervé Berville, a French minister of state, said in an interview in the Rwandan capital, Kigali.