A pious yet erratic ruler, Sigismund attempted to hold absolute power in all his dominions. He suppressed internal opposition, strengthened the power of the Catholic Church and granted greater privileges to the Jesuits. He actively interfered in the affairs of neighbouring states; he took advantage of a period of civil unrest in Muscovy, known as the Time of Troubles, and invaded Russia, holding Moscow for two years and Smolensk thereafter. Sigismund's army also defeated the Ottoman forces in Moldavia, which systematically led to the demise of Sultan Osman II. However, the Polish-Swedish conflict had a less favourable outcome. After a series of short skirmishes and wars ending in a truce, Gustavus II Adolphus of Sweden launched a campaign against the Commonwealth which resulted in the loss of Polish Livonia (Estonia and Latvia) with Riga and in Sigismund's claim to the Swedish crown.