Cardioversion is a medical procedure that uses quick, low-energy shocks to restore a regular heart rhythm.