A heart attack, or myocardial infarction, occurs when blood flow to a part of the heart muscle is blocked for an extended period. This blockage is often caused by a buildup of plaque in the coronary arteries, which can rupture and form a clot. The lack of blood flow can cause damage to the heart tissue.