qnli question: In what year did European countries first recognize Switzerland's independence from the Holy Roman Empire? sentence: The Old Swiss Confederacy had acquired a reputation of invincibility during these earlier wars, but expansion of the federation suffered a setback in 1515 with the Swiss defeat in the Battle of Marignano.