If you've had atrial fibrillation for more than two days, cardioversion can increase the risk of a clot forming. In this case, you'll be given an anticoagulant for three to four weeks before cardioversion, and for at least four weeks afterwards to minimise the chance of having a stroke.