South Africa's trade surplus widened to 52.77 billion rand ($3.67 billion) in March from a revised surplus of 31.22 billion rand in February, the South African Revenue Service said.
The surplus was the widest on record, topping the record seen in June last year and well above a market forecast of 25 billion rand.
Exports increased by 28.9% on a month-on-month basis to 168.29 billion rand, while imports rose 16.3% to 115.52 billion rand, the revenue Service said.
Sales in the precious metals and stones category climbed 41% in the month, followed by a 22% jump in mineral exports and 32% increased in vehicle exports.
Some analysts are predicting that the current boom in commodity prices may be the beginning of a commodities super cycle, like the one seen in the early 2000s, driven by the release of pent-up demand, especially from China.
Global gold, platinum and copper prices have hit record highs in 2021. The first two are among South Africa's chief exports.
"South Africa now surprises with what may be the most positive trade print versus consensus in the history of this series," said Razia Khan, chief Africa economist at Standard Chartered Bank.
"It would be wrong to attribute this to a weak economy. Given our expectations of firm PGM prices, the good news is likely here to stay. This should provide significant support to the rand," Khan said.
The rally in global commodity prices saw South Africa collect more tax revenue that expected, easing pressure on an economy that was in recession before COVID-19 struck, and in 2020 suffered its biggest slump in a century.
($1 = 14.3814 rand)
(Reporting by Mfuneko Toyana; Editing by Promit Mukherjee/Mark Heinrich)