HCM is primarily caused by mutations in genes encoding proteins of the cardiac sarcomere. These genetic mutations are often inherited in an autosomal dominant pattern, meaning only one copy of the mutated gene is sufficient to cause the condition. However, de novo mutations (new mutations not inherited from parents) can also occur.