Harem
mid 17th century: from Arabic ḥaram, ḥarīm, literally ‘prohibited, prohibited place’ (hence ‘sanctuary, women's quarters, women’), from ḥarama ‘be prohibited’. Compare with haram.
wiktionary
Borrowed from Ottoman Turkish حرم (harem)Turkish harem, from Arabic حَرَم (ḥaram, “something prohibited; sanctuary, women”); and later also from حَرِيم (ḥarīm) with same meaning, both from حَرُمَ (ḥaruma, “be forbidden or unlawful”).
etymonline
harem (n.)
1630s, "part of a Middle Eastern house reserved for women," from Turkish harem, from Arabic haram "wives and concubines," originally "women's quarters," literally "something forbidden or kept safe," from root of harama "he guarded, forbade." From 1784 in English as "wives, female relatives and female slaves in a Middle Eastern household." The harem-skirt was introduced in fashion 1911. Harem pants attested from 1921; fashionable c. 1944. An earlier word for them (in a Middle Eastern/Balkan context) was bag-trousers (1849).