In Tunis, which was part of the Ottoman Empire but very much a self-governing entity, a reform program modeled on the Tanzimat was put in practice, accompanied by important reforms such as the abolition of slavery in 1846. Soon Tunisians felt themselves so advanced that on October 31, 1863, Husayn Paşa, the mayor of Tunis, wrote a letter to Amos Perry, the American consul general, urging the Americans to reconsider their attitude toward slavery in the name of “human mercy and compassion.” This was fifteen months before the Thirteenth Amendment, which abolished slavery, was passed by the U.S. Congress.