Somalia has endured nearly 20 years of war and chaos since the fall of the last stable government in 1991 .