Harem former times, some harems were guarded by eunuchs (castrated men) who were allowed inside. Similar institutions have been common in other Mediterranean and Middle Eastern civilizations, especially among royal and upper-class families and the term is sometimes used in non-Islamic contexts. The structure of the harem and the extent of monogamy or polygamy has varied depending on the family's personalities, socio-economic status, and local customs. Although the institution has experienced a sharp decline in the modern era, seclusion of women is still practiced in some parts of the world, such as rural Afghanistan and conservative states of the Gulf region.
Harem schools and baths. The harem had a hierarchy, its chief authorities being the wives and female relatives of the emperor and below them were the concubines. The royal harem played an important role in the history of Safavid Persia. In the early Safavid period, young princes were placed in the care of a "lala" (high-ranking Qizilbash chief who acted as a guardian) and eventually given charge of important governorates. Although this system had the danger of encouraging regional rebellions against the shah, it gave the princes education and training which prepared them for dynastic succession. This policy was changed by