in 1596 the polish king decided to move the crown from vilnius to brest , leaving warsaw the most important municipality in poland .
In 1611 the king and his court finally moved from Krakow ( Cracow ) to Warsaw, making it the capital of the Polish state.