structural:expansion, linguistic:voice_change, quality:correction, structural:reformatting, stylistic:style_transfer
Foreign wars and NAM Presidency: 1975–1979

Castro considered Africa to be "the weakest link in the imperialist chain", and at the request of Agostinho Neto he ordered 230 military advisers into Angola in November 1975 to aid Neto's Marxist MPLA in the Angolan Civil War. When the US and South Africa stepped up their support of the opposition FLNA and UNITA, Castro ordered a further 18,000 troops to Angola, which played a major role in forcing a South African and UNITA retreat. The decision to intervene in Angola has been a controversial one, all the more so as Castro's critics have charged that it was not his decision at all, contending that the Soviets ordered him to do so. Castro always maintained that he took the decision to launch Operation Carlota himself in response to an appeal from Neto and that the Soviets were in fact opposed to Cuban intervention in Angola, which took place over their opposition.

Traveling to Angola, Castro celebrated with Neto, Sékou Touré and Guinea-Bissaun president Luís Cabral, where they agreed to support Mozambique's Marxist–Leninist government against RENAMO in the Mozambican Civil War. In February, Castro visited Algeria and then Libya, where he spent ten days with Gaddafi and oversaw the establishment of the Jamahariya system of governance, before attending talks with the Marxist government of South Yemen. From there he proceeded to Somalia, Tanzania, Mozambique and Angola where he was greeted by crowds as a hero for Cuba's role in opposing apartheid South Africa. Throughout much of Africa he was hailed as a friend to national liberation from foreign dominance. This was followed with visits to East Berlin and Moscow.

There is often talk of human rights, but it is also necessary to talk of the rights of humanity. Why should some people walk barefoot, so that others can travel in luxurious cars? Why should some live for thirty-five years, so that others can live for seventy years? Why should some be miserably poor, so that others can be hugely rich? I speak on behalf of the children in the world who do not have a piece of bread. I speak on the behalf of the sick who have no medicine, of those whose rights to life and human dignity have been denied.

– Fidel Castro's message to the UN General Assembly, 1979

In 1977, the Ogaden War broke out over the disputed Ogaden region as Somalia invaded Ethiopia; although a former ally of Somali president Siad Barre, Castro had warned him against such action, and Cuba sided with Mengistu Haile Mariam 's Marxist government of Ethiopia. In a desperate attempt to stop the war, Castro had a summit with Barre where he proposed a federation of Ethiopia, Somalia, and South Yemen as an alternative to war. Barre who saw seizing the Ogaden as the first step towards creating a greater Somalia that would unite all of the Somalis into one state rejected the federation offer and decided upon war. Castro sent troops under the command of General Arnaldo Ochoa to aid the overwhelmed Ethiopian army. Mengistu's regime was barely hanging on by 1977, having lost one-third of its army in Eritrea at the time of the Somali invasion. The intervention of 17,000 Cuban troops into the Ogaden was by all accounts decisive in altering a war that Ethiopia was on the brink of losing into a victory.

After forcing back the Somalis, Mengistu then ordered the Ethiopians to suppress the Eritrean People's Liberation Front, a measure Castro refused to support. Castro extended support to Latin American revolutionary movements, namely the Sandinista National Liberation Front in its overthrow of the Nicaraguan rightist government of Anastasio Somoza Debayle in July 1979. Castro's critics accused the government of wasting Cuban lives in these military endeavours; the anti-Castro Center for a Free Cuba has claimed that an estimated 14,000 Cubans were killed in foreign Cuban military actions. When American critics claimed that Castro had no right to interfere in these nations, he countered that Cuba had been invited into them, pointing out the US's own involvement in various foreign nations. Between 1979 and 1991 about 370,000 Cuban troops together with 50,000 Cuban civilians (mostly teachers and doctors) served in Angola, representing about 5% of Cuba's population. The Cuban intervention in Angola was envisioned as a short-term commitment, but the Angolan government used the profits from the oil industry to subsidize Cuba's economy, making Cuba as economically dependent upon Angola as Angola was militarily dependent upon Cuba.

In the late 1970s, Cuba's relations with North American states improved during the period with Mexican president Luis Echeverría, Canadian prime minister Pierre Trudeau, and US president Jimmy Carter in power. Carter continued criticizing Cuba's human rights abuses but adopted a respectful approach which gained Castro's attention. Considering Carter well-meaning and sincere, Castro freed certain political prisoners and allowed some Cuban exiles to visit relatives on the island, hoping that in turn Carter would abolish the economic embargo and stop CIA support for militant dissidents. Conversely, his relationship with China declined, as he accused Deng Xiaoping 's Chinese government of betraying their revolutionary principles by initiating trade links with the US and attacking Vietnam. In 1979, the Conference of the Non-Aligned Movement (NAM) was held in Havana, where Castro was selected as NAM president, a position he held until 1982. In his capacity as both president of the NAM and of Cuba he appeared at the United Nations General Assembly in October 1979 and gave a speech on the disparity between the world's rich and poor. His speech was greeted with much applause from other world leaders, though his standing in NAM was damaged by Cuba's refusal to condemn the Soviet intervention in Afghanistan.