Mutation is a permanent alteration in the DNA sequence of an organism that occurs due to genetic damage, errors in DNA replication, or exposure to environmental factors such as radiation or chemicals. This can lead to the emergence of new traits or the loss of others that are no longer functional.