I think that due to the complexities of life and the difficulties of living, various forms of tribalism and geographic loyalty are pretty much inevitable. It's not necessarily a bad thing in of itself, I put my family and friends with shared beliefs and interests ahead of other people in terms of loyalty.
You do tend to get the unwanted side effect of out-group hostility and ignorant attitudes among the less intelligent masses, but that's pretty much inevitable as well.