When the Swedish King Gustavus Adolphus of Sweden defeated the Imperial troops led by Tilly at the Battle of Breitenfeld (1631), his troops were open to the whole of Southern Germany. At the Christmas of 1632, the Swedish General Gustav Horn appeared before the gates of Freiburg. Freiburg surrendered on 30 December 1632. With the arrival of the Spaniards in 1633 led by the Duke of Feria, the Swedes left the city only to take it again one year later. After the Spanish and imperial victory at the Battle of Nördlingen in 1634 over the Protestant army led by General Horn and the Wettin Duke Bernard of Saxe-Weimar, the Swedes finally left Southern Germany and thus also Freiburg.