Both nations are Arab League, African Union & Organisation of Islamic Cooperation members and maintain cordial relations.
Both Algeria and Somalia gained their independence in the early 1960s, initially, both nations had similar viewpoints and ideologies such as third-world cooperation, however both nations formally adopted socialism as a guiding ideology with the ascension of Houari Boumediene and Siad Barre.
Relations between both nations would remain cordial as Somalia supported the Arab coalition in the Yom Kippur War in which Algeria was a belligerent,[1] however relations begin to strain when Somalia began to mobilise its Armed Forces for a potential invasion of Eastern Ethiopia in 1977.
[4] Furthermore, relations were strained when Somalia refused to cut ties with Anwar Sadat's Egypt for normalising ties with Israel & Somalia's refusal to recognise Western Sahara in favour of better relations with Morocco which it maintains to this day.
[5] When the Somali government collapsed in 1991, Algeria contributed peacekeepers to UNOSOM II, the second phase of the United Nations Operation in Somalia.