At that time, as the Kingdom of Poland and the Grand Duchy of Lithuania became involved in conflicts in Livonia, Polish king Sigismund II Augustus organized a Sea Commission ("Komisja Morska") which operated between 1568 and 1572, and supported the operations of Polish privateers, but that met with opposition of the Poland's primary port, Gdańsk (Danzig), which saw them as a threat to its trade operations (see Hanseatic League). This led to the development of a privateer port in Puck. Around the start of the 17th century, Poland became ruled by the House of Vasa, and was involved in a series of wars with Sweden (see also dominium maris baltici). The Polish kings of the period attempted to create a proper naval fleet, but their attempts met with repeated failures, due to lack of funds in the royal treasury (Polish nobility saw little need for the fleet and refused to raise taxes for its construction, and Gdańsk continued its opposition to the idea of a royal fleet). During the reign of Sigismund III of Poland, the most celebrated victory of the Commonwealth Navy took place at the Battle of Oliwa in 1627 against the Swedish Empire, during the Polish–Swedish War. The victory over the Swedish fleet secured for Poland permanent access to the Baltic, and laid the foundations for potential expeditions beyond Europe. The plans for the permanent naval fleet fell through shortly afterwards due to a badly executed alliance with the Habsburgs who in 1629 forcibly took over the fleet.