Cancerous cells form through a series of genetic mutations that occur in the DNA of a normal cell. These mutations can be triggered by various factors, including environmental influences such as exposure to carcinogens, genetic predispositions, and lifestyle factors like diet and smoking. When these mutations affect genes that regulate cell growth and division, they can lead to cancer.