MH is primarily caused by a genetic mutation in the RYR1 gene or, less commonly, the CACNA1S gene. These genes are responsible for regulating calcium release in muscle cells. When triggered by certain anesthetic agents like succinylcholine or volatile anesthetics like sevoflurane, the mutated genes cause uncontrolled calcium release, leading to sustained muscle contractions and hyperthermia.