Septal myectomy is a surgical procedure primarily performed to treat hypertrophic cardiomyopathy (HCM). This condition is characterized by the thickening of the interventricular septum, which can obstruct blood flow from the left ventricle to the aorta. The surgery involves removing a portion of this thickened septal muscle to improve blood flow and reduce symptoms.