Humans are tribal creatures. Much of modern life makes us less social and tribal and therefore less happy. Outside threats such as wars tend to strengthen social bonds.
The main thrust of Political Tribes is that group identities based on things like ethnicity, religion and skin color are very important but the US has often failed to recognise this in its foreign policy.