By the 1830s the Ottoman Empire was in danger of dissolution. It had lost Greece in the Greek War of Independence, Serbia was autonomous, Russia pressed from the north, and the armies of its own governor in Egypt, Muhammad Ali, had twice defeated the sultan's. Mahmud II had cleared the way for change by destroying the Janissaries in 1826. His successors, guided by French-speaking officials such as Mustafa Reşid Pasha, launched the Tanzimat, Turkish for reorganization.
It opened with the Edict of Gülhane in 1839, which promised all subjects security of life, honor and property, regular and fair taxation in place of tax farming, and orderly military conscription. The Reform Edict of 1856, issued under European pressure after the Crimean War, went further by guaranteeing equality between Muslims and non-Muslims in taxation, justice, military service and public employment, undercutting the old hierarchy of the millet system and ending the Jizya. Around these pledges reformers built new institutions: a conscript army, ministries on the European pattern, commercial and penal codes borrowed from France, secular courts alongside the Sharia courts, a land law, state schools and a university, telegraphs, railways and a central bank. They promoted Ottomanism, a common citizenship meant to bind Greeks, Armenians, Arabs and Turks to the state and counter Balkan nationalism.
The results were mixed. The state grew stronger and more centralized, and a new educated class emerged. But the reforms were imposed from above and met resistance from many sides: Ulama and other Muslim conservatives resented the loss of Islamic legal primacy and Muslim privilege, provincial notables and tax farmers defended their incomes, and many Christians still preferred independence. The empire paid for reform by borrowing in Europe from 1854, defaulted in 1875, and saw its revenues placed under foreign creditors' control in 1881, while low treaty tariffs left its crafts exposed to imports.
In 1876 reformers secured a constitution and an elected parliament. Sultan Abdulhamid II suspended both in 1878 and ruled as an autocrat, though he kept modernizing schools, railways and the army. The constitutional cause was revived by the Young Turks in 1908.