Tanzania’s move from Ujamaa socialism towards a market economy is usually told as a choice between socialism and markets. It is better understood as a long argument over who gets to write the rules of the market Tanzania trades in. That argument has outlasted Julius Nyerere, survived structural adjustment and now runs through President Samia Suluhu Hassan’s courtship of investors and the country’s planned LNG project.

From Ujamaa to adjustment

Ujamaa, Nyerere’s attempt to build a post-colonial economy organised around collective self-reliance, failed in its own terms. Agricultural collectivisation did not produce the food security it promised. Industrial development stalled without the capital or technical base to sustain it. By the 1980s Tanzania was accepting structural adjustment conditions from the International Monetary Fund that dismantled the policy architecture Nyerere had spent two decades building. A philosophy built on self-determination ended in economic conditions set in Washington.

That irony is the hinge of the story. Ujamaa failed at producing prosperity, but it failed while trying to answer a real question: on whose terms does a poor country join the world economy? Its collapse did not retire the question; it handed the answer to others. Structural adjustment did not merely change Tanzania’s policies. It relocated their authorship from Dar es Salaam to creditor capitals, and every liberalising government since has governed inside that relocation.

What followed was a long and contested process of institutional redefinition: privatisation of state enterprises, removal of agricultural marketing boards, currency liberalisation and lower trade barriers. Each measure was argued over between those who saw global market integration as the path to development and those who argued that integration without bargaining power was a different kind of dependency. That contest has not been resolved. It has moved to a new phase under Samia, Tanzania’s first female president, who inherited her predecessor John Magufuli’s policy direction and has taken it somewhere notably different.

Magufuli and Samia

Magufuli’s tenure was defined by resource nationalism (renegotiating mining contracts, confronting foreign investors, asserting state control over extractive revenues) alongside restrictions on political space and the press. Samia has recalibrated external engagement, reopening diplomatic relationships, courting foreign investment with a warmer climate and pursuing macroeconomic stability. Growth figures alone cannot show how the benefits of that shift are distributed. The question they do not answer is whether the governance terms of new investment are scrutinised closely enough to prevent a repeat of earlier extractive arrangements that left host communities and public revenues behind.

The two presidencies are usually narrated as opposites, the nationalist and the liberaliser, but they are better read as two answers to the same constraint. Magufuli’s confrontational resource policies unsettled investors. Samia’s approach brings capital back by lowering the temperature, at the risk of conceding on terms. The pendulum is not ideology. It is a small economy testing, from both directions, how much sovereignty the market will price in.

The gas-project test

Tanzania’s natural gas sector is the test case. Significant offshore discoveries have created the conditions for the country to become an LNG exporter, with contracts involving Shell, Equinor and other majors under negotiation for years. The infrastructure required (coastal LNG terminals, pipelines, processing facilities) is capital investment at a scale no Tanzanian government could self-finance. But the revenue-sharing terms, local content requirements, governance of national company participation and the timeline for benefits to reach public revenues are the variables where Tanzania’s position is strongest before construction. Bargaining power can change later, but how far depends on project economics and legal provisions rather than disappearing automatically once the infrastructure is built.

Tanzania’s turning point is not whether to be open to the world. That question was settled decades ago. The current question is whether openness can be organised on terms Tanzania sets, rather than terms it accepts because the alternative is an isolation the global financial system makes prohibitively expensive.