Counterproductive work behavior guided by moral disengagement is detrimental to organizations, and moral identity can inhibit the effect of moral disengagement on CWB-I. Nursing administrators should focus on improving nurses' moral identity and improving the healthcare workplace environment so that moral identity can better exert its inhibitory effect on counterproductive work behavior among nurses.