ABSTRACT A regular heartbeat is essential for maintaining the homeostasis of the vertebrate body. However, environmental pollutants, oxygen deficiency and extreme temperatures can impair heart function in fish. In this Review, we provide an integrative view of the molecular origins of cardiac arrhythmias and their functional consequences, from the level of ion channels to cardiac electrical activity in living fish. First, we describe the current knowledge of the cardiac excitation–contraction coupling of fish, as the electrical activity of the heart and intracellular Ca2+ regulation act as a platform for cardiac arrhythmias. Then, we compile findings on cardiac arrhythmias in fish. Although fish can experience several types of cardiac arrhythmia under stressful conditions, the most typical arrhythmia in fish – both under heat stress and in the presence of toxic substances – is atrioventricular block, which is the inability of the action potential to progress from the atrium to the ventricle. Early and delayed afterdepolarizations are less common in fish hearts than in the hearts of endotherms, perhaps owing to the excitation–contraction coupling properties of the fish heart. In fish hearts, Ca2+-induced Ca2+ release from the sarcoplasmic reticulum plays a smaller role than Ca2+ influx through the sarcolemma. Environmental changes and ion channel toxins can induce arrhythmias in fish and weaken their tolerance to environmental stresses. Although different from endotherm hearts in many respects, fish hearts can serve as a translational model for studying human cardiac arrhythmias, especially for human neonates.