In 1809, a short war with Austria started. Although the Duchy of Warsaw won the Battle of Raszyn, Austrian troops entered Warsaw, but Varsovian and French forces then outflanked their enemy and captured Kraków, Lwów and some of the areas annexed by Austria in the Partitions of Poland. During the war, the German colonists settled by Prussia during Partitions openly rose up against the Varsovian government. After the Battle of Wagram, the ensuing Treaty of Schönbrunn allowed for a significant expansion of the Duchy's territory southwards with the regaining of once-Polish and Lithuanian lands.