Cancer is caused by a combination of factors, and in many cases, the exact cause is unknown. However, certain risk factors have been identified. Tobacco use, including smoking and the use of other tobacco products, is a major cause of various types of cancer. Family history of cancer, exposure to carcinogens in the environment or workplace, unhealthy lifestyle choices such as poor diet and lack of physical activity, and viral infections can also increase the risk of developing cancer.