Pulmonary fibrosis (PF) is a devastating lung disease that leads to impaired lung function and ultimately death. Several studies have suggested that melatonin, a hormone involved in regulating sleep-wake cycles, may be effective in improving PF. Ramelteon, an FDA-approved melatonin receptor agonist, has shown promise in exerting an anti-PF effect similar to melatonin. However, further investigations are required for illuminating the extent on its therapeutic benefits and the underlying molecular mechanisms. In this work, a mouse lung fibrosis model was built through intratracheal administration of bleomycin (BLM). Subsequently, the mice were administrated Ramelteon for a duration of 3weeks to explore its efficacy and mechanism of action. Additionally, we utilized a TGF-β1-induced MRC-5 cell model to further investigate the molecular mechanism underlying ramelteon's effects. Functionally, Ramelteon partially abrogated TGF-β1-induced pulmonary fibrosis and reduced fibroblast proliferation, extracellular matrix deposition, and differentiation into myofibroblasts. In vivo experiments, ramelteon attenuated BLM-induced pulmonary fibrosis and collagen deposition. Mechanistically, ramelteon exerts its beneficial effect by alleviating translocation and expression of YAP1, a core component of Hippo pathway, from cytoplasm to nucleus; however, overexpression of YAP1 reversed this effect. In conclusion, our findings indicate that ramelteon can improve PF by regulating Hippo pathway and may become a potential candidate as a therapy to PF.