Ventricular arrhythmia is a leading cause of death in patients with diabetes. Here the authors show that inflammasome activation and ILK-1β production in cardiac macrophages cause arrhythmia in diabetic mice, which can be successfully treated using agonists to IL-1β receptor or NLRP3 inhibitors.