Belgium's formation, like that of its Benelux neighbours, can be traced back to the "Seventeen Provinces" within the Burgundian Netherlands. These were brought together under the House of Valois-Burgundy, and eventually declared independent of both France and Germany by their descendant Charles V, Holy Roman Emperor, in his Pragmatic Sanction of 1549. The Eighty Years' War (1568–1648), led to the split between a northern Dutch Republic, and the Southern Netherlands from which Belgium and Luxembourg developed. This southern territory continued to be ruled by the Habsburg descendants of the Burgundian house, at first as the "Spanish Netherlands". Invasions from France under Louis XIV led to the loss of most of what is now Nord-Pas-de-Calais to France, while the remainder finally became the "Austrian Netherlands". The French Revolutionary wars led to Belgium becoming part of France in 1795, bringing the end of the semi-independence of areas which had belonged to the Catholic church. After the defeat of the French in 1814, a new United Kingdom of the Netherlands was created, which eventually split one more time during the Belgian Revolution of 1830–1839, giving three modern nations, Belgium, the Netherlands, and Luxembourg.