Atrial fibrillation (AF) is common in pulmonary hypertension (PH), whereas the mechanisms and treatments remain to be explored. TRPV2 regulates the structure and function of the cardiovascular system; however, little attention has been given to its role in AF. This study was to determine whether TRPV2 was involved in PH-induced AF and the effects of TRPV2 inhibitor tranilast on AF in rat models of PH. Monocrotaline (MCT) and SU5416/hypoxia (SuHx)-induced PH models were performed to detect atrial electrophysiological parameters. Daily tranilast (a TRPV2 inhibitor) or saline was given starting 1 day before PH establishment. PH increased the susceptibility to AF, with TRPV2 up-regulated in the right atria. Compared to PH rats, tranilast reduced AF inducibility and the prolongations of ERP and APD; mitigated cardiopulmonary remodeling and the increases in P-wave duration and P-R interval; partially reversed the down-regulation of ion channels such as Cav1.2, Nav1.5, Kv4.3, Kv4.2, Kv1.5, Kir2.1, Kir3.1, Kir3.4 as well as connexin (Cx) 40 and Cx43; improved right atrial (RA) fibrosis, enlargement, and myocardial hypertrophy; decreased the accumulation of inflammatory cells; down-regulated inflammatory indicators such as TNF-α, IL-1β, CXCL1, and CXCL2; and inhibited the activation of the PI3K-AKT-NF-κB signaling pathway. Our results reveal that TRPV2 participates in PH-induced AF, and TRPV2 inhibitor tranilast prevents PH-induced RA remodeling. TRPV2 might be a promising target for PH-induced AF.