structural:summarization, structural:expansion
Batavian Republic and Kingdom (1795–1890)

In the 18th century the Dutch Republic had seen a state of a general decline, 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. From 1806 to 1810, the Kingdom of Holland was set up by Napoleon Bonaparte as a puppet kingdom governed by his brother Louis Bonaparte. 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 November 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. 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. 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 and the Java War in the Dutch East Indies brought the Netherlands to the brink of bankruptcy. However, the Cultivation System was introduced in 1830; in the Dutch East Indies, 20% of village land had to be devoted to government crops for export. The policy brought the Dutch enormous wealth and made the colony self-sufficient. The Netherlands abolished slavery in its colonies in 1863. Enslaved people in Suriname would be fully free only in 1873.