Countries chronology (sept 1976-july 1987)
3. Algeria
1976. A new constitution is promulgated that reestablishes the National Assembly. Boumedienne is elected president. Mauritania and Morocco breaks their relations with Algeria caused by the support of Algeria to the Polisario Front, the guerrilla that fights for the independence of the Western Sahara against Morocco and Mauritania.
1977. The first elections under the new constitution happen.
1978. Boumedienne dies. Rabat Bilah is named provisional president.
1979. Chadli Benjedid is elected president. An amendment in the Constitution reduces the presidencial period to 5 years. Ben Bella is liberated by the government. Diplomatic relations with Mauritania are reestablished after the renounce of Mauritania to the Western Sahara.
1980. Abdelaziz Bouteflika is dismissed as foreign minister. Violent berber unrest in Tizi-Ouzou caused by the discrimination of the government against the berbers
1981. May. Benjedid begins reforms to "arabize" the country and to preserve the regionals languages.
July. Soviet foreign minister Andrei Gromiko visits Algeria. Benjedid and Gromiko talks about the growing new alliance between China and the Soviet Union. Gromiko supports the politics of Algeria in Western Sahara in support of Polisario Front. An economic treaty is signed between Soviet Union and Algeria.
1982. January. A chinese delegation visits Algeria, a serie of economical accords are signed with China.
November 1. Chinese and soviet economical and military advisors are present in the celebrations of the National Holiday.
1983. Diplomatic tension between Morocco and Algeria rises with some skirmishes between the two armies in the frontier.
1984. July. A treaty of military and economic mutual help is signed with China and Soviet Union.
Formally from this moment Algeria could be considered that is an ally of Soviet Union and China . (in fact the army, air force and navy from 1980 his principal supplier of armament is the Soviet Union)
Also with this treaty it is formalized that naval bases at Mers el Kebir and Annaba are now used also by the Eskadra (Soviet Naval Mediterranean Fleet).
1985. January. Tensions with Morocco rises, after US secretary of state James Baker visits Morocco and promises military help and support against any agression against the territory of Morocco (a reference to Polisario Front and Algeria) -The Baker Politics consisted in erode the soviet positions in the Third World with a progressive and agressive politic against the allies of Soviet Union and China, this politics will be continued by secretary of State Richard A. Clarke during his mandate as secretary of state (1993-2000) with better luck and a version more refined and reformed named popularly "Clarke doctrine" in fact although James Baker will be the figure most popular of the second Reagan administration Richard A Clarke will be far more popular during his mandate as secretary of state than James Baker in his mandate.
6 july-2 october. The second War of The Sands (the first happened in 1963) caused by the rising tensions between Algeria and Morocco and the support of Algeria to the Polisario Front also the fact that Algeria is a strong ally of the East Bloc and Morocco of USA makes this regional conflict another more in the list of the Cold War (1946-2001).
Algerian troops ocuppies Bouarfa, Taouz and Erfoud (july-agugust). For the Moroco is a war in two fronts because Polisario Front attacks the morocco garrisons in Western Sahara and south of Morocco (in fact Polisario Front after defeating Morocco troops ocuppies briefly Tarfaya 7-10 august).
Algerian troops but fails in the attempt to ocuppy Oudja (12 august-4 september) and they has more casualties than moroccan troops.
China and the Soviet Union supports Algeria while United Kingdom and United States support Morocco. France, Organization of African Unity, Arab League and United Nations attempt to make a ceasefire agreement but only the high losses of Algeria in the battle of Ar-Rachidiya (a battle of tanks as big as the egyptian-israeli battles in Yom Kippur War) in 26 september - a tactical draw but a moroccan strategic victory- convinces Algeria to accept a ceasefire (2 october).
November: beginning of the negotiations with Morocco according to the mediation of France, UN and OAU.
1986. January 4. An armistice is signed by Morocco and Algeria.
12 March. A victory parade is made in Algiers in honour to the algerian heroes of the war.
Chadli Benjedid praises his soviet and chinese allies, accept the armistice and the need to negotiate with Morocco for the peace of the region and accuses United States of imperialism because his support of Israel and in promoting war between arab nations.
April. Algeria supports Gaddafi in the crisis against United States.
July. One of the first visits of the new soviet foreign minister Anatoli Drobinin is Algeria, he is welcomed by Benjedid as the representant of " Soviet Union a great friend nation of Algeria".
August. Negotiations to evacuate the algerian troops from the Morocco territory (cities of Bouarfa, Taouz and Erfoud) breaks when algerian and Morocco troops clash near Zagora.
November. The Negotiations between Morocco and Algeria reopens with the mediation of the Arab League.
1987. January. Lybian leader Gaddafi visits Algeria. He signs a treaty of friendship with Algeria, Lybia accords to support Algeria in his help to the Polisario Front and Argelia although refuses the offer of a political union with Libya supports the lybian war in Chad (Gaddafi has a lot of more friends than in OTL

)
March. Algeria and Morocco accords a demilitarized zone of 5kms in both sides of the frontier. Also Algeria and Morocco begins the exchange of presoners of war.
April. Algerian troops begin the evacuation of the territory occupied in Morocco.
July. An algerian delegation including foreign minister and defense minister attends Andropov funerals.