There is currently no approved antiviral therapy for the prophylaxis or treatment of enterovirus infections, which remain a substantial threat to public health. To discover inhibitors that can be immediately repurposed for treatment of enterovirus infections, we developed a high-throughput screening assay that measures the cytopathic effect induced by enterovirus 71 (EV71) to screen an FDA-approved drug library. Itraconazole (ITZ), a triazole antifungal agent, was identified as an effective inhibitor of EV71 replication in the low-micromolar range (50% effective concentrations [EC 50 s], 1.15 M). Besides EV71, the compound also inhibited other enteroviruses, including coxsackievirus A16, coxsackievirus B3, poliovirus 1, and enterovirus 68. Study of the mechanism of action by time-of-addition assay and transient-replicon assay revealed that ITZ targeted a step involved in RNA replication or polyprotein processing. We found that the mutations (G5213U and U5286C) conferring the resistance to the compound were in nonstructural protein 3A, and we confirmed the target amino acid substitutions (3A V51L and 3A V75A) using a reverse genetic approach. Interestingly, posaconazole, a new oral azole with a molecular structure similar to that of ITZ, also exhibited anti-EV71 activity. Moreover, ITZ-resistant viruses do not exhibit cross-resistance to posaconazole or the enviroxime-like compound GW5074, which also targets the 3A region, indicating that they may target a specific site(s) in viral genome. Although the protective activity of ITZ or posaconazole (alone or in combination with other antivirals) remains to be assessed in animal models, our findings may represent an opportunity to develop therapeutic interventions for enterovirus infection.