Ethnocentrism is part of the process in producing nationalism.
Neuliep and mccrosky state, Ethnocentrism may serve a very valuable function when one’s central group is under actual, or the threat of, attack.
Ethnocentrism forms the basis for patriotism and the willingness to sacrifice for one’s central group.