Our findings reveal that astrocytes autonomously control SARS-CoV-2 infection via the NLRP3-GSDMD-IL-1β axis, underscoring their active role in the neuroimmune response to viral infection. Here, IL1B is linked to viral infectious disease.