The situation was such as to tempt Napoleon on to an undertaking on which he had probably set his heart in the autumn of 1806, that of dethroning the Spanish Bourbons and of replacing them by a Bonaparte.
A few years later he incurred the royal disfavour for gross malversation in the administration of public property, and failing to compromise matters with the king, fled to Germany and engaged in political intrigues with the adventurer Wilhelm von Grumbach (1503-1567) for the purpose of dethroning Frederick II.
Even among the advocates of republi canism there was no intention of dethroning Dom of Pedro, excepting a few extreme members of the party, who now gained the upper hand.
The upshot of his oratory was the summoning of a rokosz, or national insurrection, to Sandomir, which was speedily joined by the majority of the szlachta all over the country, who openly proclaimed their intention of dethroning the king and chastising the senate, and sent Stadnicki to Transylvania to obtain the armed assistance of Stephen Bocskay.
Few weeks later the Polish commander-in-chief formed a whole series of conspiracies for the purpose of dethroning his lawful sovereign, and openly placed himself beneath the protection of Louis XIV.