The Palace School (Enderun-i Hümayun Mektebi) was a special school inside of the innermost court of Topkapı Palace that provided the education for the servants of the Ottoman dynasty, who went on to staff the administrative elite of the Ottoman Empire.
These were converts to Islam, young males between 8 and 20 years old, who were mostly taken away from the rural Christian communities settled in Rumelia in an enslavement process known as devşirme.
In parallel with the male segment of the school, the slave women of the imperial harem were also given an education.
The slave girls of the palace school were taught the principles of Islam, as well as practical skills such as sewing, embroidering, dancing, singing, music, story-telling, and basic literacy.
[3] The number of pages serving in the palace varied, from approximately 300 in the time of Mehmed II to 700 by the beginning of the seventeenth century.