Atrial and ventricular tachyarrhythmias can be perpetuated by up-regulation of inward rectifier potassium channels. Thus, it may be beneficial to block inward rectifier channels under conditions in which their function becomes arrhythmogenic (e.g., inherited gain-of-function mutation channelopathies, ischemia, and chronic and vagally mediated atrial fibrillation). We hypothesize that the antimalarial quinoline chloroquine exerts potent antiarrhythmic effects by interacting with the cytoplasmic domains of Kir2.1 (I(K1)), Kir3.1 (I(KACh)), or Kir6.2 (I(KATP)) and reducing inward rectifier potassium currents. In isolated hearts of three different mammalian species, intracoronary chloroquine perfusion reduced fibrillatory frequency (atrial or ventricular), and effectively terminated the arrhythmia with resumption of sinus rhythm. In patch-clamp experiments chloroquine blocked I(K1), I(KACh), and I(KATP). Comparative molecular modeling and ligand docking of chloroquine in the intracellular domains of Kir2.1, Kir3.1, and Kir6.2 suggested that chloroquine blocks or reduces potassium flow by interacting with negatively charged amino acids facing the ion permeation vestibule of the channel in question. These results open a novel path toward discovering antiarrhythmic pharmacophores that target specific residues of the cytoplasmic domain of inward rectifier potassium channels.