The People's Republic of Mozambique was established when the country gained independence from Portugal in June 1975 and the Mozambican Liberation Front ("FRELIMO") established a one-party socialist state led by Samora Machel. The state enjoyed close political and military ties with the Soviet Union, which was one of the first nations to provide diplomatic recognition and financial support to the fledgling FRELIMO government. For the duration of its history, the People's Republic of Mozambique remained heavily dependent on Soviet aid, both in financial terms as well as with regards to food security, fuel, and other vital economic necessities. From 1977 to 1992, the country was devastated by a deadly civil war which pitted the armed forces against the anti-communist Mozambique National Resistance (RENAMO) insurgency, backed by neighbouring Rhodesia and South Africa.