NLR proteins are innate immune sensors that respond to microbial infection. Upon pathogen infection, some NLR proteins form large complexes, called inflammasomes, which activate caspase-1 and induce the production of active IL-1β and IL-18. Activation of inflammasomes can also lead to an inflammatory cell death program, named pyroptosis. In this review, we will discuss the role of various NLR proteins in sensing different viral infections, as well as the strategies used by several RNA and DNA viruses to counteract the antiviral effects of NLR-dependent inflammasomes.