 When hostilities were concluded in 1648 with the Treaty of Westphalia, most of Alsace was recognized as part of France, although some towns remained independent.The treaty stipulations regarding Alsace were complex.Although the French king gained sovereignty, existing rights and customs of the inhabitants were largely preserved.