The South African Reserve Bank (SARB) said that the economy's decline in the second quarter of the year was largely due to weaker production.

Mining, manufacturing and trade bore the brunt of higher costs, softer demand and logistical constraints.

ALSO READ: SA economy shrinks in Q2 after six quarters of growth

The economy contracted by 0.2% in the second quarter, reversing the 0.4% growth in the first quarter.

The central bank said the economy also remained under pressure from higher input costs and logistical constraints.

The Reserve Bank said mining was one of the biggest drags on the economy, contracting by 3% in the second quarter.

Production fell across seven of the twelve mineral groups, with platinum group metals, manganese, gold and iron ore among those hardest hit.

Manufacturing wasn't much stronger.

The sector contracted by 1.8% - its third consecutive quarterly decline.

The Reserve Bank said weaker domestic demand and higher operating costs continued to weigh on manufacturers, with production falling across seven of the ten divisions.

Agriculture provided some relief, helped by stronger horticultural and field-crop production.

However, that wasn't enough to offset the weakness elsewhere in the economy.

Never miss a major story. Get breaking news and the latest developments from South Africa and beyond as they happen.