qnli question: In what year did European countries first recognize Switzerland's independence from the Holy Roman Empire? sentence: It was not until more than one hundred years after these internal wars that, in 1648, under the Peace of Westphalia, European countries recognized Switzerland's independence from the Holy Roman Empire and its neutrality.