Following negotiations held in Portugal, itself experiencing severe social and political turmoil and uncertainty due to the April 1974 revolution, Angola's three main guerrilla groups agreed to establish a transitional government in January 1975. Within two months, however, the FNLA, MPLA and UNITA had started fighting each other and the country began splitting into zones controlled by rival armed political groups. The MPLA gained control of the capital Luanda and much of the rest of the country. With the support of the United States, Zaïre and South Africa intervened militarily in favour of the FNLA and UNITA with the intention of taking Luanda before the declaration of independence. In response, Cuba intervened in favor of the MPLA, which became a flash point for the Cold War. With Cuban support, the MPLA held Luanda and declared independence on 11 November 1975, with Agostinho Neto becoming the first president, though the civil war continued. At this time, most of the half-million Portuguese who lived in Angola – and who had accounted for the majority of the skilled workers in public administration, agriculture, industries and trade – fled the country, leaving its once prosperous and growing economy in a state of bankruptcy.