Why were the majority of African countries controlled by military dictatorships during the 1970's and 1980's?

Faced with increasingly frequent and severe violence, military rule was widely accepted by the population of many countries as means to maintain order, and during the 1970s and 1980s a majority of African countries were controlled by military dictatorships. Territorial disputes between nations and rebellions by groups seeking independence were also common in independent African states. The most devastating of these was the Nigerian Civil War, fought between government forces and an Igbo separatist republic, which resulted in a famine that killed 1–2 million people. Two civil wars in Sudan, the first lasting from 1955 to 1972 and the second from 1983 to 2005, collectively killed around 3 million. Both were fought primarily on ethnic and religious lines.

Military dictatorships were accepted as a means to maintain order in face of increasingly frequent and severe violence.