The invention belongs to the technical field of icariin applications, and discloses applications of icariin in preparation of medicines treating arrhythmia. According to a technical scheme, the medicines are capsules, micro-capsules, lipidosomes, granules, injections, tablets or oral liquids. Beneficial effects of the applications are that the icariin can prolong occurrence time (a time threshold) and increase the using amount (a dosage threshold) for arrhythmia induced by aconitine under a whole (living body) condition, and the icariin can effectively reduce the occurrence rates of ventricular tachycardia and ventricular fibrillation which are induced by the aconitine and the death rate of New Zealand big-ear rabbits. The icariin can retard instantaneous sodium current (I<NaT>), late sodium current (I<NaL>) and L-type calcium current (I<CaL>) and plays a role of an arrhythmia preventing medicine. The icariin has no obvious effects on inward rectifier potassium current (I<K1>) of left-ventricular muscle (LVM), rapid delayed rectifier potassium current (I<Kr>), instantaneous outward potassium current (I<to>) of left atrial muscle (LAM) and ultra-rapidly activated delayed rectifier potassium current (I<Kur>), thus improving medication safety.