Cardioversion is a common procedure used to treat an abnormal and rapid heart rhythm (also called a cardiac arrhythmia). During a cardioversion procedure, an electrical “shock” is delivered to the chest to restore the heart rhythm to a normal pattern. Most patients who undergo a cardioversion procedure have either atrial fibrillation or atrial flutter.