A heart attack is a serious medical condition that occurs when the blood flow to the heart is blocked, often due to a buildup of fatty deposits in the coronary arteries. While heart attacks can be sudden and severe, the good news is that the majority can be avoided by making simple, consistent lifestyle changes.