Pharmacological inhibitor (Brilliant Blue G, BBG) or genetic deficiency of P2X7R significantly mitigated depressive-like behaviours; ameliorated electrophysiological deterioration and autonomic dysfunction; improved ion channel expression and atrial fibrosis; and prevented atrial NLRP3 inflammasome activation in the pathophysiological process of AF in depression models. Here, NLRP3 is linked to atrial fibrillation.