The Wallachian uprising of 1821 began as an anti-Phanariote revolt, which grew into an insurrection through the involvement of the Greek Filiki Eteria. Moldavia was occupied by Ypsilantis, while Wallachia was held by Tudor Vladimirescu. As the latter was incapable of maintaining discipline in his rebel army (the "Pandurs") and also was willing to compromise with the Ottomans, the Eteria had him arrested after the Ottoman army retook Bucharest without resistance. His army was disbanded and the rebellion suppressed after the Ottomans destroyed the Eterists in the Danubian Principalities. While unsuccessful in obtaining liberty, it ended the Phanariote era; Ottoman Sultan Mahmud II consented in 1822 to the nomination of two native boyars, Ioan Sturdza and Grigore IV Ghica as "hospodars" of Moldavia and Wallachia.