South Africa’s budget deficit in July was the biggest since at least 2004.

The continent’s most-industrialised economy recorded a budget gap of R95.98 billion ($6.6 billion), the Pretoria-based National Treasury said in a statement Thursday. That’s the largest since Bloomberg started recording the data. July readings have reflected the biggest shortfall each year since 2010.

The economy contracted in the first quarter and the current-account deficit widened, highlighting the country’s vulnerability to capital outflows. Mining production, once the engine of the economy, has slumped, and manufacturing and consumer spending have struggled to pick up the slack. A widening budget gap has limited President Cyril Ramaphosa’s ability to boost infrastructure and social spending.