There are plenty of examples. Confucianism is a school of political thought and philosophy that forms a vital part of the foundation of Chinese civilization, and a lot of Confucian writings emphasize family loyalty. But this loyalty had to be balanced with a concern for the general well-being of the state. Nepotism served as a counterbalance to growing imperial power in different Chinese eras; Confucianism even suggests a little nepotism is a good thing