Non-small cell lung cancer (NSCLC) is a frequent type of lung cancer. Transcription factor Yin Yang 1 (YY1), an endogenous transcription factor containing zinc finger structure, can accelerate NSCLC progression. However, the impact of YY1 on the stemness of NSCLC cells and the mechanism of promoting NSCLC cell progression is unclear. YY1 and Sonic hedgehog (Shh) expressions were monitored by RT-qPCR, western blot, and immunohistochemistry. Overall survival was tested through Kaplan-Meier analysis. The interaction between YY1 and Shh was confirmed. Then, cell migration, stemness, and epithelial-mesenchymal transition (EMT) were assessed with functional experiments in vitro and in vivo. YY1 and Shh were highly expressed in NSCLC tissues and positively correlated with the poor OS of NSCLC patients. Functional experiments denoted that YY1 or Shh overexpression could accelerate EMT, migration, and stemness of NSCLC cells, and YY1 or Shh knockdown played the opposite role to its overexpression. Mechanism analysis disclosed that Shh, as a target gene of YY1, was positively related to YY1. The rescued experiment manifested that Shh silencing could reverse the induction effect of YY1 overexpression on EMT, migration, and stemness of NSCLC cells. In vivo experiments also confirmed that YY1 could accelerate tumor growth and EMT and weaken apoptosis. YY1 promotes NSCLC EMT, migration, and stemness by Shh, which might be novel diagnostic markers and therapeutic targets for NSCLC therapy.