Smoking causes cancer through the inhalation of harmful substances such as tar, nicotine, and numerous other chemicals. These substances cause mutations in the DNA of cells in the lungs and other organs, which can lead to cancer. Moreover, smoking causes chronic inflammation and impairs the body's ability to repair damaged DNA, further increasing the risk of cancer.