Somalia has had no effective central government since 1991 and has been ruled by warring factions .