What was Namibia before?

Namibia was made the protectorate of German South West Africa in 1884. In 1920, it was mandated to South Africa by the League of Nations and became known as South West Africa.