Normal veins could develop to varicose vein (VV) by some risk factors, and might further progress to shallow vein thrombosis (SVT). However, the molecular mechanism of key genes associated with the progression and regression of VV are still not thorough enough. In this study, the healthy control (HC), VV, and SVT vascular samples were collected for transcriptome sequencing. The differentially expressed genes (DEGs) were screened by "DESeq2", including DEGs1 (HC vs. VV), DEGs2 (HC vs. SVT) and DEGs3 (VV vs. SVT). And their functional enrichment analyses were conducted by "ClusterProfiler". The receiver operating characteristic (ROC) curve was used to obtain the key genes (KGs) of the pathogenesis of VV and SVT. The qRT-PCR assay was performed to validate the expressions of KGs. Immune cell infiltration analyses were conducted based on ssGSEA method. The competitive endogenous RNAs (ceRNAs) regulatory network was constructed. The target drugs of KGs were predicted using DrugBank database. The biofunctions of DACT3 were further investigated through a series of experiments in vitro. All of these DEGs were associated with inflammation and immunity related functions. Immune cell infiltration was significantly different between VV and SVT. Six key genes including PLP2, DACT3, LRRC25, PILRA, MSX1 and APOD that were associated with the progression and regression of VV were screened. The expression of LRRC25 and PILRA was significantly negatively associated with central memory T cell, and significantly positively associated with B cell. Besides, XIST was the critical regulator of multiple KGs. Cimetidine was potential drug for VV and SVT therapy. Overexpression of DACT3 significantly inhibited the proliferation and migration of vascular smooth muscle cells (VSMCs), and affected their cell cycle and phenotypic transition. This study identified six key genes associated with the progression and regression of VV. Among them, DACT3 was proved to hinder VV progression. These findings may help to deepen understanding its underlying mechanisms.