There is often a strong correlation between high foreign direct investments (FDI), contract revenues, loans, and the number of Chinese workers, shows analysis by Beijing-based think tank, Development Imagined. This might not be surprising, considering how vital overseas lending is to China’s Belt and Road Initiative, an ambitious project across geopolitical zones.

For example, Algeria, Angola, and Nigeria—three of Africa’s largest oil producers—with 42,999, 22,868 and 12,199 documented workers respectively, house the highest number of Chinese workers in Africa. These countries are also top recipients of Beijing investment and have chosen Chinese companies as partners in infrastructure projects including railways, roads, and ports.

Between 2005 and 2020, Algeria, Angola, and Nigeria have received $23.9 billion, $24.7 billion and $40.15 billion in Chinese investment and contracts, according to data from the American Enterprise Institute (AEI).

Crashing commodity prices may indirectly cause the decline in Chinese workers’ number, Hannah Ryder, chief executive of Development Reimagined. “Commodity prices can feed into the ability of governments to access foreign exchange and therefore raise or pay for debt,” she said. “Thus, if commodity prices fall, African governments may take less loans, and thus fewer workers may come.”

However, she posits that the types of projects Beijing is willing to finance, and the domestic labor policies of African countries, designed to improve job creation, play more significant roles in the rise or fall in the Chinese workforce on the continent. For example, between 2005 and 2018, Chinese loans have flowed into four major sectors: transport, power, mining, and communication. Labor intensity and requirement of local expertise varies across these industries and projects, impacting whether or not a contingent of Chinese workforce (and specialists) needs to be deployed.

But while the total number of Chinese workers is falling in Africa it is picking up pace in some specific countries including Guinea, Mauritania, and Uganda, even if their numbers are relatively small. Over the last few years, China has announced multiple investments and loans to the three countries. In Uganda, for example, China invested $138.3 million in construction projects in the third quarter of 2020. Chinese loans account for more than 39% of Kampala’s total debt.

Sign up to the Quartz Africa Weekly Brief here for news and analysis on African business, tech, and innovation in your inbox

📬 Sign up for the Daily Brief

Our free, fast, and fun briefing on the global economy, delivered every weekday morning.