Frameshift mutations can occur through insertions or deletions of nucleotides. These mutations can be caused by various factors including environmental mutagens, errors during DNA replication, or through the actions of mobile genetic elements such as transposons.