Devshirme (Ottoman Turkish: دوشیرمه, romanized: devşirme, lit. 'collecting', usually translated as "child levy" or "blood tax") was the Ottoman practice of forcibly recruiting soldiers and bureaucrats from among the children of their Balkan Christian subjects and raising them in the religion of Islam. Those coming from the Balkans came primarily from noble Balkan families and rayah classes. It is first mentioned in written records in 1438, but probably started earlier. It created a faction of soldiers and officials loyal to the Sultan. It counterbalanced the Turkish nobility, who sometimes opposed the Sultan.
The system produced a considerable number of grand viziers from the 15th century to the 17th century. This was the second most powerful position in the Ottoman Empire, after the sultan. Initially, the grand viziers were exclusively of Turk origin, but after there were troubles between Sultan Mehmed II and the Turkish grand vizier Çandarlı Halil Pasha the Younger, who was the first grand vizier to be executed, there was a rise of slave administrators (devshirme). They were much easier for the sultans to control, compared to free administrators of Turkish aristocratic extraction. The devshirme also produced many of the Ottoman Empire's provincial governors, military commanders, and divans from the 15th to the 17th century. Sometimes, the devshirme recruits were castrated and became eunuchs. Although often destined for the harem, many eunuchs of devshirme origin went on to hold important positions in the military and the government, such as grand viziers Hadım Ali Pasha, Sinan Borovinić, and Hadım Hasan Pasha.