A heart attack, or myocardial infarction, occurs when there is a sudden blockage in a coronary artery. This restricts the flow of blood, meaning that oxygen-rich blood is unable to reach the heart. When the heart is starved of blood, serious and life-threatening damage can be inflicted on the heart muscle.