How is state power maintained within a population? How does ethnicity and nationalism influence the ways in which cultural groups recognized their inclusion or exclusion within a nation-state?

How is state power maintained within a population? How does ethnicity and nationalism influence the ways in which cultural groups recognized their inclusion or exclusion within a nation-state?