The United Provinces of the Netherlands, officially the Republic of the Seven United Netherlands, and commonly referred to in historiography as the Dutch Republic, was a confederation that existed from 1579 until the Batavian Revolution in 1795. It was a predecessor state of the present-day Netherlands, and the first independent Dutch state. The republic was established after seven Dutch provinces in the Spanish Netherlands revolted against Spanish rule, forming a mutual alliance against Spain in 1579 and declaring their independence in 1581. It comprised Groningen, Frisia, Overijssel, Guelders, Utrecht, Holland, and Zeeland.