Artificial Intelligence,represented by Chat GPT,brings ethical dilemmas to individuals,societies,govern-ments and nations while promoting social development.Confucianism attaches importance to ethical issues and adheres to the ethical principles of blood ethics of the difference between human and fowl,social ethics of responsibility conscious-ness,political ethics of loyalty,trust and righteousness,and state ethics of mission consciousness.Therefore,we should adhere to the idea of unity of heaven and man to safeguard human security and subjectivity;the idea of righteousness rather than profit to protect the rights and interests of workers;the idea of respecting rites and respecting benevolence to eliminate data leakage and to enhance the credibility of the government;and the idea of the family's indoctrination to safeguard the national ideological security with a view to the benign interaction and synergistic development of human beings and AI.