Mutations can happen in various ways, such as through substitutions, insertions, deletions, or duplications of nucleotides.