This study aimed to investigate the inhibitory effect of astragaloside IV (AS-IV) on enterovirus 71 (EV71)-induced pyroptosis. The results indicated that AST-IV inhibited EV71-induced pyroptosis in normal human gastric epithelial (GES-1) cells. Therefore, we investigated the mechanisms underlying pyroptosis inhibition by AST-IV. We found that EV71 inhibited the Nrf2-Keap1 pathway, whereas AST-IV treatment activated it. Overexpression of Nrf2 led to the inhibition of EV71-induced pyroptosis. EV71 infection and AST-IV treatment upregulated and downregulated thioredoxin interacting protein (TXNIP), respectively. Downregulation of TXNIP activated the Keap1/Nrf2 signaling pathway and inhibited EV71-induced pyroptosis. Furthermore, transcription factor 12 (TCF12) reduced the protein and mRNA levels of TXNIP, and AST-IV treatment upregulated TCF12. These results demonstrate that the TCF12-TXNIP-Keap1/Nrf2 axis participates in the inhibition of pyroptosis by AST-IV in EV71-infected GES-1 cells, suggesting that AST-IV could be used as a dietary supplement to alleviate EV71-induced pyroptosis.