Lung cancer is one of the most lethal diseases and therefore poses a significant threat to human health. The Warburg effect, which is the observation that cancer cells predominately produce energy through glycolysis, even under aerobic conditions, is a hallmark of cancer. 6-phosphofructo-2-kinase/fructose-2,6-biphosphatase 2 (PFKFB) is an important regulator of glycolysis. Shikonin is a Traditional Chinese herbal medicine, which has been reported to exert antitumor effects. The present study aimed to investigate the anticancer activity of shikonin in lung cancer. Cell Counting Kit-8 (CCK-8) and colony formation assays were used to analyze proliferation in A549 and H446 cells. Wound healing and Transwell assays were used to measure migration and invasion in A549 and H446 cells. Cell apoptosis was analyzed using flow cytometry. Lactate levels, glucose uptake and cellular ATP levels were measured using their corresponding commercial kits. Western blotting was performed to analyze the protein expression levels of key enzymes involved in aerobic glucose metabolism. Reverse transcription-quantitative PCR was used to analyze the mRNA expression levels of PFKFB2. The results of the present study revealed that PFKFB2 expression levels were significantly upregulated in NSCLC tissues. Shikonin treatment decreased the proliferation, migration, invasion, glucose uptake, lactate levels, ATP levels and PFKFB2 expression levels and increased apoptosis in lung cancer cells in a dose-dependent manner. The overexpression of PFKFB2 increased the proliferation, migration, glucose uptake, lactate levels and ATP levels in lung cancer cells, while the knockdown of PFKFB2 expression exerted the opposite effects. Moreover, there were no significant differences in lung cancer cell migration, apoptosis, glucose uptake, lactate levels and ATP levels between cells with knocked down PFKFB2 expression or treated with shikonin and the knockdown of PFKFB2 in cells treated with shikonin. In conclusion, the results of the present study revealed that shikonin inhibited the Warburg effect and exerted antitumor activity in lung cancer cells, which was associated with the downregulation of PFKFB2 expression.