The pumping of the heart, or the heartbeat, is caused by alternating contractions and relaxations of the myocardium. These contractions are stimulated by electrical impulses from a natural pacemaker, the sinoatrial, or S-A, node located in the muscle of the right atrium.