Confucianism, daoism, and legalism were the primary philosophical beliefs in ancient china, emphasizing ethics, harmony, and strict rule of law.