He was the Speaker of the Parliament extraordinary held in Warsaw on 3 December to 24 December 1613. During the war with Sweden  and the  fought in Livonia winning to the Swedish army at Kroppenhof, Lixna, Slavskoye and Dyneburg. It is because of fighting with the Swedes until 1629, he was appointing Palatine-Governor of Smolensk region, but the nomination was already in 1625. Seeing the threat from Russia, Gosiewski immediately upon taking the governorate of Smolensk began to renovate the walls of the city. He personally oversaw the construction of Sigismund Fortress, which strengthened the eastern part of the stronghold. Intensively collected supplies of food and ammunition, and developed a business intelligence gathering valuable information about Moscow's war preparations. In the spring of 1632, he made review the fortifications in Dorogobuzh and other frontier forts. During the war with Russia, in the year 1632 and 1634 after a particularly famous defense of Smolensk - for ten months he defended the city against besieging forces led by Mikhail Shein, repelling all assaults, until the advent of the battle led by Prince Władysław. He fought at Vitebsk, Alder and Mstislav. He participated as a Commissioner in peace negotiations, topped the conclusion on 14 June 1634, in Treaty of Polanów. For his services, he received numerous goods in the province of Smolensk. He founded the Jesuits' College in Vitebsk and the female Monastery of the Holy Brigit at Brest-Litovsk.As Palatine-Governor, he commemorated the death of his longtime client - Jan Kunowski, who in 1640 wrote a series of poems dedicated to his late patron.
Question: Which happened first, Gosiewski taking on the governate of Smolensk or the famous defense of Smolensk?
Answer: Gosiewski taking on the governate