Mogadishu has endured years of violence since the fall of Somalia 's last stable government in 1991 .