In the 17th and 18th centuries, Trier was sought after by France, who invaded during the Thirty Years' War, the War of the Grand Alliance, the War of the Spanish Succession, and the War of the Polish Succession. France succeeded in finally claiming Trier in 1794 during the French Revolutionary Wars, and the electoral archbishopric was dissolved. After the Napoleonic Wars ended in 1815, Trier passed to the Kingdom of Prussia. Karl Marx, the German philosopher and one of the founders of Marxism, was born in the city in 1818.