Atrial fibrillation (AF), the most common cardiac arrhythmia, is an important contributor to mortality and morbidity. Ubquitin-specific protease 7 (USP7), one of the most abundant ubiquitin-specific proteases (USP), participated in many cellular events, such as cell proliferation, apoptosis, and tumourigenesis. However, its role in AF remains unknown. Here, the mice were treated with Ang II infusion to induce the AF model. Echocardiography was used to measure the atrial diameter. Electrical stimulation was programmed to measure the induction and duration of AF. The changes in atrial remodeling were measured using routine histologic analysis. Here, a significant increase in USP7 expression was observed in Ang II-stimulated atrial cardiomyocytes and atrial tissues, as well as in atrial tissues from patients with AF. The administration of p22077, the inhibitor of USP7, attenuated Ang II-induced inducibility and duration of AF, atrial dilatation, connexin dysfunction, atrial fibrosis, atrial inflammation, and atrial oxidase stress, and then inhibited the progression of AF. Mechanistically, the administration of p22077 alleviated Ang II-induced activation of TGF-β/Smad2, NF-κB/NLRP3, NADPH oxidases (NOX2 and NOX4) signals, the up-regulation of CX43, ox-CaMKII, CaMKII, Kir2.1, and down-regulation of SERCA2a. Together, this study, for the first time, suggests that USP7 is a critical driver of AF and revealing USP7 may present a new target for atrial fibrillation therapeutic strategies.