Flaviviruses are emerging human pathogens and worldwide health threats. During infection, pathogenic subgenomic flaviviral RNAs (sfRNAs) are produced by resisting degradation by the 5'→3' host cell exonuclease Xrn1 through an unknown RNA structure-based mechanism. Here, we present the crystal structure of a complete Xrn1-resistant flaviviral RNA, which contains interwoven pseudoknots within a compact structure that depends on highly conserved nucleotides. The RNA's three-dimensional topology creates a ringlike conformation, with the 5' end of the resistant structure passing through the ring from one side of the fold to the other. Disruption of this structure prevents formation of sfRNA during flaviviral infection. Thus, sfRNA formation results from an RNA fold that interacts directly with Xrn1, presenting the enzyme with a structure that confounds its helicase activity.