Starvation causes the accumulation of lipid droplets in the liver, a somewhat counterintuitive phenomenon that is nevertheless conserved from flies to humans. Much like fatty liver resulting from overfeeding, hepatic lipid accumulation (steatosis) during undernourishment can lead to lipotoxicity and atrophy of the liver. Here, we found that while surface populations of Astyanax mexicanus undergo this evolutionarily conserved response to starvation, the starvation-resistant cavefish larvae of the same species do not display an accumulation of lipid droplets upon starvation. Moreover, cavefish are resistant to liver atrophy during starvation, providing a unique system to explore strategies for liver protection. Using comparative transcriptomics between zebrafish, surface fish, and cavefish, we identified the fatty acid transporter slc27a2a/fatp2 to be correlated with the development of fatty liver. Pharmacological inhibition of slc27a2a in zebrafish rescues steatosis and atrophy of the liver upon starvation. Further, down-regulation of FATP2 in drosophila larvae inhibits the development of starvation-induced steatosis, suggesting the evolutionary conserved importance of the gene in regulating fatty liver upon nutrition deprivation. Overall, our study identifies a conserved, druggable target to protect the liver from atrophy during starvation.