(Bloomberg) -- The five members of the Southern African Customs Union and Mozambique have reached a deal with the U.K. to govern trade between them after Brexit.

The new agreement mirrors the deal between those countries and the European Union and will come into effect if the U.K. leaves the bloc on Oct. 31, South African Trade and Industry Minister Ebrahim Patel told reporters Wednesday in Cape Town. The agreement will be submitted to South Africa’s cabinet for approval and then be ratified by parliament, he said.

SACU is the world’s oldest customs union and the four smaller members -- Botswana, Lesotho, Namibia and Eswatini -- derive between 30% and 40% of their government revenue from a customs-sharing pool that gains and falls on South African trade. Africa’s most-industrialized economy recorded its first quarterly trade deficit in more than a year in the three months through June, widening the current-account shortfall.

The fortunes of Lesotho, Namibia and Eswatini are also beholden to developments in their larger neighbor with their exchange rates pegged to the rand.

The U.K. is South Africa’s fourth-largest trading partner. Patel said he doesn’t foresee any fundamental change in trading conditions such as tariffs between southern African countries and the U.K. and EU after Brexit.

To contact the reporter on this story: Paul Vecchiatto in Cape Town at pvecchiatto@bloomberg.net

To contact the editors responsible for this story: Paul Richardson at pmrichardson@bloomberg.net, Rene Vollgraaff, Alastair Reed

©2019 Bloomberg L.P.