Write an article that answers the following question: How many years was Wenceslaus II of Bohemia king of Poland?
After Krakow had been devastated during the 1241 Mongol invasion of Poland, it was re-established according to Magdeburg Law by Prince Bolesaw V the Chaste. In 1291 the Duchy of Krakow fell to the Premyslid king Wenceslaus II of Bohemia who in 1300 also became King of Poland. Upon the extinction of the Premyslids in 1306, the Piast duke Wadysaw I the Elbow-high assumed the rule at Krakow, while in 1310 the Bohemian Kingdom passed to the House of Luxembourg. The new king, John of Bohemia, continued to claim the Polish royal title and moreover sought to vassalize the Piast dukes of the adjacent Silesian region.