Idiopathic pulmonary fibrosis (IPF) is a progressive, irreversible, and fatal pulmonary disease. Owing to its complex pathogenesis and lack of effective treatment, patients have a short survival time after diagnosis. Although pirfenidone and nintedanib can mitigate declines in lung function, neither has stopped the progression of IPF nor significantly improved long-term survival in patients. HDAC6 inhibitors have been reported to inhibit TGF-β1-induced collagen expression to protect mice from pulmonary fibrosis, and this pharmacological mechanism has been supported by immunohistochemical studies of HDAC6 overexpression in IPF lung tissue. In this study, a series of novel derivatives were obtained based on the reported active compounds through the ring closure strategy in scaffold hopping theory. Compound W28 was selected from in vitro screening for better HDAC6 selectivity, and it was used for in-depth pharmacokinetic and pharmacodynamic studies. Detailed molecular docking studies, molecular dynamics (MD) simulations and the structure-activity relationship (SAR) discussion will contribute to guiding the design of new molecules. In further studies, the ability of W28 to inhibit the IPF phenotype was confirmed, and the corresponding pharmacological mechanism was also demonstrated. Moreover, the pharmacokinetic characteristics of W28 were also tested to guide pharmacodynamic studies in vivo, and the therapeutic effect of W28 on bleomycin-induced pulmonary fibrosis in mice was found to be satisfactory. The results reported in this paper may provide a reference for promoting the discovery of new selective HDAC6 inhibitors as drug molecules for the treatment of IPF.