The Nod-like receptor family pyrin domain containing 3 (NLRP3) inflammasome has been the most distinctive polymer protein complex. After recognizing the endogenous and exogenous danger signals, NLRP3 can cause inflammation by pyroptosis and secretion of mature, bioactive forms of IL-1β and IL-18. The NLRP3 inflammasome is essential in the genesis and progression of infectious illnesses. Herein, we provide a comprehensive review of the NLRP3 inflammasome in infectious diseases, focusing on its two-sided effects. As an essential part of host defense with a protective impact, abnormal NLRP3 inflammasome activation, however, result in a systemic high inflammatory response, leading to subsequent damage. In addition, scientific evidence of small molecules, biologics, and phytochemicals acting on the NLRP3 inflammasome has been reviewed. We believe that the NLRP3 inflammasome helps us understand the pathological mechanism of different stages of infectious diseases and that inhibitors targeting the NLRP3 inflammasome will become a new and valuable research direction for the treatment of infectious diseases.