Cardioversion is a procedure that is done to return your heartbeat to a normal rhythm. It's done when the heart is beating very fast or has an irregular beat.