A heart attack, or myocardial infarction, occurs when blood flow to your heart becomes blocked. It is caused by a blood clot in your coronary arteries, which provide blood to your heart. While people of any sex can have a heart attack, men have a higher risk of having one than women.