Early modern bilateral relations were mainly affected by the Cold War and the ideology of communism. China originally had close ties with the anti-apartheid and liberation movement, African National Congress (ANC), in South Africa, but as China's relations with the Soviet Union worsened and the ANC moved closer to the Soviet Union, China shifted away from the ANC towards the Pan-Africanist Congress. China adopted several principles, among them supporting the independence of African countries while investing in infrastructure projects. The Somali Democratic Republic established good relations with the Soviet Union throughout the Cold War era. When Somalia sought to create a Greater Somalia, it declared war on Ethiopia, with the aid of the Soviet Union, Somalia took Ogaden in three months, but the Soviet Union shifted its support from Somalia to Ethiopia, and Ethiopia retook the Ogaden region. This angered Siad Barre, and expelled all Soviet advisors and citizens from Somalia, but Somalia maintained good relations with China, which segregated with the traditional Russian Communism. China and Zaire shared a common goal in Central Africa, namely doing everything in their power to halt Soviet gains in the area. Accordingly, both Zaire and China covertly funneled aid to the FNLA (and later, UNITA) in order to prevent the MPLA, who were supported and augmented by Cuban, from coming to power. During the Cold War, a few smaller nations also entered in alliances with China, such as Burundi under Michel Micombero.