In this study, we investigated the role of transient receptor potential melastatin 2 (TRPM2), a nonselective cation channel abundantly expressed in inflammatory cells such as macrophages, in the development of postoperative ileus, a complication of abdominal surgery characterized by gastrointestinal dysmotility. In wild-type mice, we found that intestinal manipulation, a maneuver that elicits symptoms typical of postoperative ileus, delays the transit of fluorescein-labeled dextran, promotes the infiltration of CD68+ macrophages, Ly6B.2+ neutrophils, and MPO+ cells into intestinal muscles, boosts expression of IL-1β, IL-6, TNF-α, iNOS, and CXCL2 in intestinal muscles and peritoneal macrophages, enhances phosphorylation of ERK and p38 MAPK in intestinal muscles, and amplifies IL-1β, IL-6, TNF-α, iNOS, and CXCL2 expression in resident and thioglycolate-elicited peritoneal macrophages following exposure to lipopolysaccharide. Remarkably, TRPM2 deficiency completely blocks or diminishes these effects. Indeed, intestinal manipulation appears to activate TRPM2 in resident muscularis macrophages and elicits release of inflammatory cytokines and chemokines, which, in turn, promote infiltration of macrophages and neutrophils into the muscle, ultimately resulting in dysmotility. NEW & NOTEWORTHY Activation of transient receptor potential melastatin 2 (TRPM2) releases inflammatory cytokines and chemokines, which, in turn, promote the infiltration of inflammatory cells and macrophages into intestinal muscles, ultimately resulting in dysmotility. Thus TRPM2 is a promising target in treating dysmotility due to postoperative ileus, a complication of abdominal surgery.