A nonsense mutation is a type of DNA mutation where a change in the nucleotide sequence creates a premature stop codon, leading to the early termination of protein synthesis. This can severely affect the function of the resulting protein, as it often results in a truncated protein that may be nonfunctional or harmful. Nonsense mutations can arise from various factors, such as errors during DNA replication or exposure to certain chemicals.