restored in South-West Africa in 1921 and administration of Walvis Bay was transferred to SWA by Act of the South African parliament in 1922.
In 1971, anticipating an imminent ceding of its control over South-West Africa, South Africa transferred control of Walvis Bay back to its Cape Province, thus making it an exclave. In 1977, in an attempt to avoid losing control of Walvis Bay to a possibly hostile SWAPO-led government, the South African government reimposed direct rule and reasserted its claim of sovereignty based on the original annexation. In 1978, the United Nations Security Council provided for bilateral negotiations between South Africa and a future Namibia to resolve the political status of Walvis Bay.
In 1990 South-West Africa gained independence as Namibia, but Walvis Bay remained under South African sovereignty. At midnight on 28 February 1994 South Africa formally transferred sovereignty over Walvis Bay and the Penguin Islands to Namibia