Cardiac arrest occurs when the heart stops beating due to failure of the heart to contract effectively. Cardiac arrest is different from a heart attack, where blood flow to the muscle of the heart is impaired.