It is estimated that approximately 20,000 Huguenot refugees relocated to Brandenburg-Prussia in response to the Edict of Potsdam. The contrast between the generosity of the Prussian ruler's Edict of Potsdam and the vindictiveness of the self-styled "Sun king's" Edict of Fontainebleau was conscious and widely remarked. The embryonic state became a center of European immigration, its religious freedom attracting not only French Protestants but also the persecuted of Russia, the Netherlands, and Bohemia. Thus, the immigrants to the Electorate of Brandenburg stabilized and greatly improved the country's economy following the destructive wars that had swept through Europe in the seventeenth-century.