In a porcine model of AF, TASK-1 inhibition by gene therapy or pharmacological compounds induced cardioversion to sinus rhythm. Here, KCNK3 is linked to atrial fibrillation.