Diabetes raises heart attack risk by damaging blood vessels and contributing to the buildup of plaque in the arteries. Proper management of blood sugar levels is crucial to lowering this risk and maintaining heart health.