The pacemaker was created when a doctor accidentally discovered that an electrical charge could regulate heartbeats.