At the end of the court is the apartment of the black chief eunuch (Kızlar Ağası), the fourth high-ranking official in the official protocol. In-between lays the school for the imperial princes with precious tiles from the 17th and 18th centuries and gilded wainscoting. At the end of the court is the main gate to the harem (Cümle Kapısi). The narrow corridor on the left side leads to the apartments of the odalisques (white slaves given as a gift to the sultan).
Many of the eunuchs' quarters face this courtyard, which is the first one of the Harem, since they also acted as guards under the command of the Chief Harem Eunuch. The spaces surrounding this courtyard were rebuilt after the great fire of 1665. The complex includes the dormitory of the Harem eunuchs behind the portico, the quarters of the Chief Harem Eunuch (Darüssaade Ağası) and the School of Princes as well as the Gentlemen-in-Waiting of the Sultan (Musahipler Dairesi) and the sentry post next to it. The main entrance gate of the Harem and the gate of the Kuşhane connected the Enderûn court leads out into the Kuşhane door.
The dormitories of the Harem eunuchs (Harem Ağaları Koğuşu) date to the 16th century. They are arranged around an inner courtyard in three storeys. The inscription on the facade of the dormitory includes the deeds of trust of the Sultans Mustafa IV, Mahmud II and Abdül Mecid I dating from the 19th century. The rooms on the upper storeys were for novices and those below overlooking the courtyard were occupied by the eunuchs who had administrative functions. There is a monumental fireplace revetted with the 18th century Kütahya tiles at the far end. The Chief Harem Eunuch's apartment (Darüssaade Ağasi Dairesi) adjacent to the dormitory contains a bath, living rooms and bed rooms. The school room of the princes under the control of the Chief Harem eunuch was on the upper storey. The walls were revetted with 18th century European tiles with baroque decorations.