Abstract Removal of 5′ cap on cellular mRNAs by the African Swine Fever Virus (ASFV) decapping enzyme g5R protein (g5Rp) is beneficial to viral gene expression during the early stages of infection. As the only nucleoside diphosphate linked moiety X (Nudix) decapping enzyme encoded in the ASFV genome, g5Rp works in both the degradation of cellular mRNA and hydrolyzation of the diphosphoinositol polyphosphates. Here, we report the structures of dimeric g5Rp and its complex with inositol hexakisphosphate (InsP 6 ). The two g5Rp protomers interact head-to-head to form a dimer, and the dimeric interface is formed by extensive polar and nonpolar interactions. Each protomer composed a unique N-terminal helical domain and C-terminal classic Nudix domain. As a mRNA decapping enzyme, we identified key residues, including K 8 , K 94 , K 95 , K 98 , K 175 , R 221 , and K 243 located on the substrate RNA binding interfaces of g5Rp, are important to RNA binding and decapping enzyme activity. Furthermore, we identified that the g5Rp-mediated mRNA decapping was inhibited by the InsP 6 . The g5Rp–InsP 6 complex structure showed that the InsP 6 molecules occupy the same regions that primarily mediate g5Rp-RNA interaction, elucidating the roles of InsP 6 in the regulation of the viral decapping activity of g5Rp in mRNA degradation. Collectively, these results provide the structural basis of interaction between RNA and g5Rp and highlight the inhibitory mechanism of InsP 6 on mRNA decapping by g5Rp.