Mutations in the DNA sequence that encodes for proteins can lead to cancer by altering the normal function of these proteins. For example, a mutation in the gene encoding for the protein p53, a crucial tumor suppressor, can prevent it from carrying out its role in regulating the cell cycle and inducing apoptosis. This loss of function allows cells to divide uncontrollably, leading to the formation of tumors.