In 1672 – known in Dutch history as the Rampjaar (Disaster Year) – the Dutch Republic was at war with France, England and three German Bishoprics simultaneously. At sea it could successfully prevent the English and French navy entering the western shores. On land, however, it was almost taken over internally by the advancing French and German armies coming from the east. It managed to turn the tide by inundating parts of Holland but could never recover to its former glory again and went into a state of general decline in the 18th century, with economic competition from England and long-standing rivalries between the two main factions in Dutch society, the republican "Staatsgezinden" and the supporters of the stadtholder the "Prinsgezinden" as main political factions. With the armed support of revolutionary France, Dutch republicans proclaimed the Batavian Republic, modelled after the French Republic and rendering the Netherlands a unitary state on 19 January 1795. The stadtholder William V of Orange had fled to England. But from 1806 to 1810, the Kingdom of Holland was set up by Napoleon Bonaparte as a puppet kingdom governed by his brother Louis Bonaparte to control the Netherlands more effectively. However, King Louis Bonaparte tried to serve Dutch interests instead of his brother's, and he was forced to abdicate on 1 July 1810. The Emperor sent in an army and the Netherlands became part of the French Empire until the autumn of 1813, when Napoleon was defeated in the Battle of Leipzig. William Frederick, son of the last stadtholder, returned to the Netherlands in 1813 and proclaimed himself Sovereign Prince of the Netherlands. Two years later, the Congress of Vienna added the southern Netherlands to the north to create a strong country on the northern border of France. William Frederick raised this United Netherlands to the status of a kingdom and proclaimed himself as King William I in 1815. In addition, William became hereditary Grand Duke of Luxembourg in exchange for his German possessions. However, the Southern Netherlands had been culturally separate from the north since 1581, and rebelled. The south gained independence in 1830 as Belgium (recognised by the Northern Netherlands in 1839 as the Kingdom of the Netherlands was created by decree), while the personal union between Luxembourg and the Netherlands was severed in 1890, when William III died with no surviving male heirs. Ascendancy laws prevented his daughter Queen Wilhelmina from becoming the next Grand Duchess. The Belgian Revolution at home and the Java War in the Dutch East Indies brought the Netherlands to the brink of bankruptcy.