Nonalcoholic fatty liver disease (NAFLD) is increasing in worldwide prevalence, closely tracking the obesity epidemic, but specific pharmaceutical treatments for NAFLD are lacking. Defining the key molecular pathways underlying the pathogenesis of NAFLD is essential for developing new drugs. Here we demonstrate that inhibition of gut-derived serotonin synthesis ameliorates hepatic steatosis through a reduction in liver serotonin receptor 2A (HTR2A) signaling. Local serotonin concentrations in the portal blood, which can directly travel to and affect the liver, are selectively increased by high-fat diet (HFD) feeding in mice. Both gut-specific Tph1 knockout mice and liver-specific Htr2a knockout mice are resistant to HFD-induced hepatic steatosis, without affecting systemic energy homeostasis. Moreover, selective HTR2A antagonist treatment prevents HFD-induced hepatic steatosis. Thus, the gut TPH1-liver HTR2A axis shows promise as a drug target to ameliorate NAFLD with minimal systemic metabolic effects.