The Harem apartment, where the Sultans lived with their families in private, was the dwelling of the members of the Ottoman Dynasty and the upper-class women of the Harem for centuries. It also functioned as a school with its own rules and hierarchy.