The Imperial Harem (Turkish: Harem-i Hümâyûn) of the Ottoman Empire, existing between 1299 and 1923, was the Ottoman sultan's harem composed of the wives, servants (both female slaves and eunuchs), female relatives, and the sultan's concubines, occupying a secluded portion of the Ottoman imperial household. This institution played an important social function within the Ottoman court, and demonstrated considerable political authority in Ottoman affairs, especially during the long period known as the Sultanate of Women.
The utmost authority in the Imperial Harem was the Valide Sultan (queen mother), who ruled over the other women in the household and was often of slave origin herself. The Kizlar Agha (Kızlarağası, also known as the "Chief Black Eunuch" because of the black African origin of most aghas) was the head of the eunuchs responsible for guarding the Imperial Harem.
The word harem is derived from the Arabic harim or haram which give connotations of the sacred and forbidden.  The female quarters of Turkish households were then referred to as haremlik due to their prevailing exclusivity. 
|This section requires expansion. (December 2009)|
The Imperial Harem occupied one of the large sections of the private apartments of the sultan at the Topkapi Palace which encompassed more than 400 rooms. After 1853, an equally lavish harem quarter was occupied at the new imperial palace at Dolmabahçe.
Role of the Valide Sultan ("Queen Mother")
The mother of a new Sultan came to the harem with pomp, circumstance and assumed the title of Queen Mother (Valide Sultan) upon her son's ascension. She was paramount chief and ran the Harem and ruled over the members of the dynasty. The Valide Sultan who influenced the political life of the Ottoman Empire during various periods of history (such as the Sultanate of Women in the 16th and 17th centuries) had the authority to regulate the relations between the sultan and his wives and children. At times the Valide Sultan acted as regent for her son, particularly in the seventh century, when a series of accidents necessitated regencies that endowed the position of Queen Mother with great political power. 
In 1868, Empress Eugénie of France visited the Imperial harem, which was to have a lasting effect. She was taken by the sultan Abdülaziz to his mother, Valide Sultan Pertevniyal Sultan, but reportedly, Pertevniyal became outraged by the presence of a foreign woman in her harem, and greeted the Empress with a slap in the face, almost provoking an international incident.  The visit of the Empress, however, did cause a dress reform in the harem by making Western fashion popular among the harem women, who dressed according to Western fashion ever after. 
Role of the concubines
For the perpetuation and service of the Ottoman Dynasty, beautiful and intelligent slave girls were either captured in war (mainly Christian Europeans in the Balkans), recruited within the empire, or procured from neighbouring countries to become imperial concubines (Cariyes). Odalisque, a word derived from the Turkish oda, meaning chamber: thus connoting odalisque to mean chamber girl or attendant, was not a term synonymous with concubine; however, in western usage the term has come to refer specifically to the harem concubine. 
The concubines who were introduced into the harem in their tender age were brought up in the discipline of the palace. They were promoted according to their capacities and became kalfas and ustas.
The concubine with whom the sultan shared his bed became a member of the dynasty and rose in rank to attain the status of Gözde (the Favourite), Ikbal (the Fortunate) or Kadın (the Woman/Wife). The highest position herself was the Queen Mother (Valide Sultan), the mother of the Sultan, who herself used to be a concubine of the sultan's father and rose to the supreme rank in the Harem. No concubine could leave or enter the premises of the Harem without the explicit permission of the Queen Mother. The power of the Queen Mother over concubines even extended to questions of life and death, with eunuchs directly reporting to her.
The concubines either lived in the halls beneath the apartments of the consorts, the Queen Mother and the Sultan, or in separate chambers. The kadıns, who numbered up to four, formed the group who came next in rank to the Queen Mother. Right below the kadıns in rank were the ikbals, whose number was unspecified. Last in the hierarchy were the gözdes. The favourite consort who was the mother of the crown prince and the other princes (Haseki Sultan), as well as the other kadıns, enjoyed a privileged position in the hierarchy of the harem.
Role of the eunuchs
At Topkapı Palace, at the court of the Ottoman sultans, the harem staff commonly included eunuchs. These were slaves, either captured in war (mainly Christian Europeans in the Balkans) or recruited within the empire (especially from the Caucasus and blacks from Sudan) or even beyond (especially in Abyssinia). Black eunuchs usually were Sandali ('clean shaven' i.e. their genitalia were removed completely), hence they were preferred for harem service, while white eunuchs usually kept part of their penis or testicles, so they were assigned to less 'intimate' duties, e.g. secretarial. They were often donated to the Sultan by his governors, in total about six- to eight hundred.
The castrated servicemen in the Muslim and Turkish states in the Middle Ages were recruited to serve in the palace from the times of Sultan Mehmed I onwards. These eunuchs who were trained in the palace and were given the charge of guarding the harem rose in rank after serving in many positions.  The harem eunuchs and the harem organisation were under the command of the Chief harem eunuch, who was also called the Master of the Girls (Kızlar Ağası) or Chief Black Eunuch. They supervised the quarters where the female population of the palace lived. They had influence on the palace and later on the state administration in the 17th and 18th centuries as they had access to the sultan and the sultan's family and became very powerful. Eunuchs at the Ottoman court were preferably taken from Africa, especially Sudan.
The Chief Black Eunuch was sometimes considered second only to the Grand Vizier (head of the imperial government, but often working in his own palace or even away, e.g., on military campaign) in the confidence of the Sultan, to whom he had and arranged access (including his bedchamber, the ne plus ultra for every harem lady), also being his confidential messenger. As commander of an imperial army corps, the halberdiers ('baltacı'), he even held the supreme military dignity of three-horsetail pasha (general).
Meanwhile the Chief White Eunuch (Kapı Ağası), was in charge of 300 to 900 white eunuchs as head of the 'Inner Service' (the palace bureaucracy, controlling all messages, petitions, and State documents addressed to the Sultan), head of the Palace School (school for pages training as white eunuchs), gatekeeper-in-chief, head of the infirmary, and master of ceremonies of the Seraglio, and was originally the only one allowed to speak to the Sultan in private. In 1591, Murad III transferred the powers of the white to the black eunuchs as there was too much embezzlement and various other nefarious crimes attributed to the white eunuchs, but later they regained some favour.
During the Sultanate of Women (Kadınlar Sultanati), eunuchs increased their political leverage by taking advantage of minor or mentally incompetent sultans, and thereby causing political instability. Teenage Sultans were "guided" by regencies formed by the Queen Mother (Valide Sultan), the Grand Vizier and the Valide's other supporters- and the Chief Black Eunuch was the Queen Mother's and Chief Consorts' intimate and valued accomplice.
The Ottoman harem was often called "the golden cage". After Ahmed III's reformation of the law of succession to Ottoman throne and decline of sancağa çıkma (system of appointing young princes as provincial governors to train them in how to rule), princes were confined the kafes, (cage, also the Şimşirlik, Boxwood Quarters) in Topkapı Palace. They lived here in seclusion until they either acceded to the throne or were executed in order to prevent a war of succession. This change of policy had a detrimental impact on raising and training subsequent generations of Ottoman sultans.
- "Harem." Merriam-webster.com. Merriam-Webster, Inc., n.d. Web. 23 Oct. 2013.
- Murat Iyigun, “Lessons From the Ottoman Harem on Culture, Religion & Wars,” (University of Colorado, 2011), 2.
- Joan DelPlato, Multiple Wives, Multiple Pleasures: Representing the Harem, 1800-1875, (Madison: Fairleigh Dickinson University Press, 2002), 9.
- "Harem." Leslie Peirce, The Imperial Harem: Women and Sovereignty in the Ottoman Empire, (Oxford: Oxford University Press, 1993), 258.
- John Freely: Inside the Seraglio: private lives of the sultans in Istanbul. Penguin, 1 jul 2001
- Oleg Grabar: Muqarnas: An Annual on Islamic Art and Architecture
- İlhan Akşit. The Mystery of the Ottoman Harem. Akşit Kültür Turizm Yayınları. ISBN 975-7039-26-8
- Leslie P. Peirce. The Imperial Harem: Women and Sovereignty in the Ottoman Empire. Studies in Middle Eastern History. Oxford University Press, 1993. ISBN 0195086775, 978019508677
- Alum Bati's Harem Secrets (2008), ISBN 978-1425157500