An agreement with the UN Trusteeship Council granted independence to Somalia on July 1, 1960. .
The first president, Aden Abdullah Osman Daar, was defeated for reelection in 1967 by the former premier Abdi Rashid Ali Shirmarke. On October 15, 1969, Shirmarke was assassinated and days later a military group, led by Major General Muhammad Siad Barre, assumed control of Somalia. .
The years of 1978 to 1990 began a period of growing cooperation and strategic alliance between Somalia and the West. The United States had become Somalia's chief partner in defense. After Somalia's failed attempt to capture Ogadzn, its army suffered heavy losses. Also, the frequent fighting in Ogadzn triggered the flee of refugees into Somalia, increasing the starvation numbers to an estimated amount of 2 million. The U.S. gave both humanitarian and military aid to the Somali people. The U.S also trained several Somali military officers in U.S. military schools. In return the U.S. was granted use of the naval facilities at Berbera, previously a Soviet base.
Barre's rule began to create turmoil for the Somali people in 1981, after he chose members of his own Marehand clan for government positions. Insurgent groups formed a clan from the Mijertyn and Isaq clans that initiated clashes with government troops that begun in 1982. By 1990, the clans opposing Barre came together as one unit to fight the war against him and in January 1991, Barre was forced to flee the capital. Forming a coalition to govern the country proved more difficult for the clans that had been successful in deposing Barre. During the 23 months following Barre's overthrow, about 50,000 people were killed in fighting and an estimated 300,000 died of starvation as it became impossible to distribute food in the nation (Microsoft Encarta, 1997). .
On December 9, 1992, U.S. troops led a UN peacekeeping mission to Somalia, under Operation Restore Hope, which began with the arrival of 1,800 U.