 During the later periods, the sons of the sultan lived in the Harem until they were 12 years old.It is being more commonly acknowledged today that the purpose of harems during the Ottoman Empire was for the royal upbringing of the future wives of noble and royal men.These women would be educated so that they were able to appear in public as a royal wife.