Exile and death
After fleeing Mogadishu in January 1991, Barre temporarily remained in the southwestern Gedo region of the country, which was the stronghold for his family. From there, he launched a military campaign to return to power. He twice attempted to retake Mogadishu, but in May 1991 was overwhelmed by General Mohamed Farrah Aidid's army, and was forced into exile.
Barre initially moved to Nairobi, Kenya, but opposition groups with a presence there protested his arrival and support of him by the Kenyan government. In response to the pressure and hostilities, he moved two weeks later to Nigeria. Barre died on January 26, 1995 in Lagos from a heart attack. He was buried in Garbahaareey District in the Gedo region of Somalia.