On a Saturday in April 2006, two days after rebels attacked Chad’s capital, the oil minister gave Exxon Mobil and its partners until Tuesday lunchtime to pay at least $100 million directly into the treasury. Otherwise, he told Reuters, Chad would stop production. The destination mattered as much as the money. Chad’s oil royalties normally went into a London account. At the World Bank’s insistence, transfers out of it had been frozen.

Six years earlier, the oil companies and their bankers had insisted on World Bank backing before committing to a pipeline from landlocked Chad through Cameroon to the Atlantic. That gave the Bank its best chance to bargain on behalf of people living above the oil. A 1999 law set aside most of the royalties and dividends for purposes including schools, health care and roads. Some money would be saved for future generations; the producing region would get a share of royalties in its own right. The rules did not cover oil-company income taxes.

The balance began to shift when exports started in 2003. Before construction, investors could take their money elsewhere. Afterwards, they could not take the pipeline with them. And as oil prices rose, Chad earned more money, sooner than the Bank had expected. By early 2006, President Idriss Déby could challenge the spending rules without first finding a new lender or a new route to the sea. He could not afford to ignore London altogether. What he had gained was room to hold out.

In January, Chad changed the law to make security a priority and abolished the fund for future generations. The Bank suspended lending disbursements and blocked the royalties. But the treasury brought home $36.2 million from the abolished fund. Fees for exploration licences and the oil companies’ first income-tax payments also helped cover the shortfall. The government kept paying wages even as other bills went unpaid. When rebel attacks intensified in March and April, the IMF recorded exceptional security spending equivalent to 1.2 per cent of Chad’s annual economic output. The attack on the capital explains the urgency of the minister’s ultimatum. It cannot explain a law already changed three months earlier.

Chad extended the Tuesday deadline to give US mediation time. Neither side got everything it wanted. In April the Bank resumed disbursements, and Chad agreed to spend 70 per cent of that year’s direct oil revenue on priority sectors, excluding security. In July they struck a broader bargain for 2007: at least 70 per cent of budget resources covered by the agreement would go to priority sectors, now including governance. The Bank had won a promise extending beyond oil royalties. It had not recovered the power to make the government keep it.

In 2007, priority sectors received 58 per cent of actual domestically financed spending. That was short of the pledge, but up from 49 per cent across the preceding three years. The Bank’s evaluators judged that without its intervention the share would probably have been smaller. In September 2008, dissatisfied with how little Chad was allocating to poverty reduction, the Bank withdrew from the pipeline project. Chad paid off its project loans early.

For the oil-producing region, the weakness of the bargain had been apparent within weeks of the July deal. When the BBC visited southern Chad that August, work was starting on a football stadium in the town of Doba on Déby’s orders. The committee charged with allocating the region’s share had not approved it. One of its members, Pierre Djasro, was the chief of nearby Miandoum. A storm had torn the roof off his village school. He had formally asked his own committee to come and look. Twice, he told the reporter, it had said it would. He was still waiting for the visit.