Cancer genes are specific sequences of DNA that are involved in the transformation of a normal cell into a cancerous one. These genes can be broadly categorized into oncogenes, tumor suppressor genes, and DNA repair genes. Each category plays a distinct role in the onset and progression of cancer.