To stop the fibrillation of the heart in order to restore normal contractions, especially by the use of an electric shock.