The heart’s activity is regulated by the sinoatrial node (pacemaker) and the autonomic nervous system.