Cancer is caused by genetic mutations that can be inherited or acquired due to environmental factors, lifestyle choices, or infections. Common risk factors include smoking, excessive alcohol consumption, exposure to radiation or toxic chemicals, certain infections (like HPV or hepatitis), and chronic inflammation. These factors can damage DNA and lead to uncontrolled cell growth.