Due to this marriage, much of the Burgundian territories passed to the Holy Roman Empire. Throughout the early modern Wars of Religion and down to 1945, the border between the Holy Roman Empire and the kingdom of France, and later between France and Germany (specifically, concerning Alsace, Lorraine and Flanders), was disputed.