A defibrillator is a medical device that is used to restore a normal heartbeat by sending an electric shock to the heart.