A heart attack occurs when one or more of your coronary arteries become blocked. Over time, a coronary artery can narrow from the buildup of various substances, including cholesterol (atherosclerosis). This condition, known as coronary artery disease, causes most heart attacks.
During a heart attack, one of these plaques can rupture and spill cholesterol and other substances into the bloodstream. A blood clot forms at the site of the rupture. If large enough, the clot can completely block the flow of blood through the coronary artery.
Another cause of a heart attack is a spasm of a coronary artery that shuts down blood flow to part of the heart muscle. Use of tobacco and of illicit drugs, such as cocaine, can cause a life-threatening spasm. A heart attack can also occur due to a tear in the heart artery (spontaneous coronary artery dissection).