A heart attack happens if the flow of oxygen-rich blood to a section of heart muscle suddenly becomes blocked and the heart can't get oxygen. Most heart attacks occur as a result of coronary heart disease (CHD). CHD is a condition in which a waxy substance called plaque builds up inside of the coronary arteries.