The condition, which is also known as myocardial infarction, is caused by a lack of blood reaching the heart.
The heart can become seriously damaged, and may be life-threatening, without enough blood.
But, you could lower your risk of heart attacks by doing these three things every time you exercise.
Regular exercise is one of the best ways to protect yourself against heart attacks and heart disease, said medical website WebMD.
It’s crucial that every time you exercise, you warm-up.
Take the first few minutes of your workout easy, and let your body get used to what you’re asking it to do.
The main part of your workout requires conditioning. You need to make your heart beat faster than if you were just standing or sitting still.
Finally, although it’s easy to forget, always make sure you cool down.
While cooling down, don’t sit, stand still or lie down.
It could make you feel dizzy or give you heart palpitations.
The best way to cool down is to ease up the intensity of your exercise.
“If you're not active now, gradually work up to an aerobic session of about 20 to 30 minutes, at least three or four times a week.
“While the more exercise you can do, the better, any amount is good for you.
“A cardio workout is moderate if you can talk but not sing. You're exercising vigorously if you can't say more than a few words without taking a breath.”
You could also lower your risk of heart attacks by eating a healthy diet, according to the NHS.
Eating too much fatty foods could cause fatty plaques to build up in your arteries.
The plaques could lead to blockages in the blood vessels, leading to heart attacks.
Avoid foods with high levels of saturated fat, including cream, butter, hard cheese and fatty cuts of meat.
But, you should eat a small amount of unsaturated fats to boost the amount of ‘good’ cholesterol in your body. Oily fish, avocado and nuts are all great unsaturated fat options.