TWIK2 channel plays a critical role in NLRP3 inflammasome activation and mice deficient in TWIK2 channel are protected from sepsis and inflammatory lung injury. However, inhibitors of TWIK2 channel are currently in an early stage of development, and the molecular determinants underlying the chemical modulation of TWIK2 channel remain unexplored. In this study, we identified NPBA and the synthesized derivative NPBA-4 potently and selectively inhibited TWIK2 channel by using whole-cell patch clamp techniques. Furthermore, the mutation of the last residues of the selectivity filter in both P1 and P2 (i.e., T106A, T214A) of TWIK2 channel substantially abolished the effect of NPBA on TWIK2 channel. Our data suggest that NPBA blocked TWIK2 channel through binding at the bottom of the selectivity filter, which was also supported by molecular docking prediction. Moreover, we found that NPBA significantly suppressed NLRP3 inflammasome activation in macrophages and alleviated LPS-induced endotoxemia and organ injury in vivo. Notably, the protective effects of NPBA against LPS-induced endotoxemia were abolished in Kcnk6-/- mice. In summary, our study has uncovered a series of novel inhibitors of TWIK2 channel and revealed their distinct molecular determinants interacting TWIK2 channel. These findings provide new insights into the mechanisms of pharmacological action on TWIK2 channel and opportunities for the development of selective TWIK2 channel modulators to treat related inflammatory diseases.