During the campaign Peter had entered into alliance with the hospodars of Moldavia and Walachia, respectively Demetrius Cantemir and Constantine Brancovano, from whom he had received material assistance.
Russia, desirous of deriving some return for the support which she had given the sultan during his rupture with the French, induced the Porte to address to her a note in which the right of intervention in the affairs of the principalities, conferred on her by the treaty of Kainarji and reaffirmed in the convention of Ainali Ka y ak, was converted into a specific stipulation that the hospodars should be appointed in future for seven years and should not be dismissed without the concurrence of the Russian ambassador at Constantinople.
Its terms were: the confirmation of the Treaty of Bucharest and the opening of the navigation of the Black Sea to the Russian flag; a stipulation that the hospodars of Walachia and Moldavia should be elected by the boyars for seven years, their election being confirmed by the Porte which, however, had no power to dismiss them without the concurrence of the Russian ambassador at Constantinople; finally, Servia's autonomy was recognized, and, save in the fortresses, no Mussulman might reside there.
Taking a leading part in the political movements of the time, he came into conflict with the newly appointed Greek hospodars, and was exiled to Rumelia.
These armaments, which cost Matthias 1,000,000 florins per annum, equivalent to 200,00O, did not include the auxiliary troops of the hospodars of Walachia and Moldavia, or the feudal levies of the barons and prelates.