Acute liver failure (ALF) is a severe liver disease with a high mortality rate without effective therapeutic drugs. Ferroptosis is a form of programmed cell death that plays an important role in ALF. In this study, we aimed to identify ferroptosis-related genes in ALF, thereby predicting promising compounds to treat ALF. First, mRNA microarray data were utilized to identify the ferroptosis-related differentially expressed genes (DEGs). Hub genes were screened in the protein-protein interaction network and validated. Subsequently, potential drugs to treat ALF were predicted. One of the predicted drugs was tested in an ALF model of mice. Ferroptosis examination and molecular docking were analyzed to explore the mechanism. A total of 37 DEGs were identified, ten hub genes were extracted, and their expression in ALF was validated. The predicted drug niclosamide mitigated lipopolysaccharide/D-galactosamine-induced hepatotoxicity, and decreased mortality of mice in the ALF model. Mechanically, niclosamide may combine with signal transducer and activator of transcription 3 to inhibit ALF progression by suppressing ferroptosis. This study may help advance our understanding of the role of ferroptosis in ALF, and niclosamide may be promising for therapeutic efficacy in patients with ALF.