Until her independence, Namibia was a United Nations trusteeship. Namibia was administered by South Africa under a League of Nations mandate after World War I, and then later came under direct South African control in 1946. In 1966, the United Nations General Assembly terminated South Africa's mandate and declared that it had no further right to govern Namibia. The UN then assumed direct responsibility for Namibia as a trusteeship, with the goal of preparing the country for independence. This was achieved in 1990, when Namibia became an independent nation.