Three studies were conducted to examine the influence of moral identity on sense of humor, employing the benign violation theory (BVT) as a theoretical framework. Study 1 (n = 350), a questionnaire‐based survey, aimed to establish a preliminary exploration of the relationship between moral identity and sense of humor. Studies 2 (n = 172) and 3 (n = 172) jointly examined the impact of activated moral identity on sense of humor (humor appreciation, humor sharing) through the recollection and writing task. The results of these studies indicated that the effects of (activated) moral identity on the sense of humor (humor appreciation, humor sharing) were moderated by the type of humor and social distance of the target. On the one hand, high levels of (or activated) moral identity can significantly and positively predict sense of humor (humor appreciation, sharing); on the other hand, when there is a moral violation in the humor, and the target involved is at a close social distance, activated moral identity decreases the humor appreciation and humor sharing, where benign judgment plays a mediating role. These findings enrich the understanding of the complex relationship between moral identity and sense of humor, and have significant theoretical and practical implications.