IRAK4 is a critical mediator in NF-κB-regulated inflammatory signaling and has emerged as a promising therapeutic target for the treatment of autoimmune diseases; however, none of its inhibitors have received FDA approval. In this study, we identified a novel small-molecule IRAK4 kinase inhibitor, DW18134, with an IC50 value of 11.2 nM. DW18134 dose-dependently inhibited the phosphorylation of IRAK4 and IKK in primary peritoneal macrophages and RAW264.7 cells, inhibiting the secretion of TNF-α and IL-6 in both cell lines. The in vivo study demonstrated the efficacy of DW18134, significantly attenuating behavioral scores in an LPS-induced peritonitis model. Mechanistically, DW18134 reduced serum TNF-α and IL-6 levels and attenuated inflammatory tissue injury. By directly blocking IRAK4 activation, DW18134 diminished liver macrophage infiltration and the expression of related inflammatory cytokines in peritonitis mice. Additionally, in the DSS-induced colitis model, DW18134 significantly reduced the disease activity index (DAI) and normalized food and water intake and body weight. Furthermore, DW18134 restored intestinal damage and reduced inflammatory cytokine expression in mice by blocking the IRAK4 signaling pathway. Notably, DW18134 protected DSS-threatened intestinal barrier function by upregulating tight junction gene expression. In conclusion, our findings reported a novel IRAK4 inhibitor, DW18134, as a promising candidate for treating inflammatory diseases, including peritonitis and IBD.