Cancer can be caused by genetic factors, environmental exposures, lifestyle choices, or infections. Genetic mutations can be inherited or acquired due to factors like tobacco smoke, radiation, chemicals, or even some viruses. Lifestyle factors like diet, physical activity, and exposure to carcinogens also play a significant role.