Mashrabiya (مشربية), also either shanshūl (شنشول) or rūshān (روشان), is the Arabic term given to a type of projecting oriel window enclosed with carved wood latticework located on the second storey of a building or higher, often lined with stained glass. The mashrabiya is an element of traditional Arabic architecture used since the Middle Ages up to the mid-20th century. It is mostly used on the street side of the building; however, it may also be used internally on the sahn (courtyard) side.
Mashrabiyas were mostly used in houses and palaces although sometimes in public buildings such as hospitals, inns, schools and government buildings. They are found mostly in the Mashriq – i.e. the eastern part of the Arab world, but some types of similar windows are also found in the Maghreb (the western part of the Arab world). They are very prevalent in Iraq, the Levant, Hejaz and Egypt. They are mostly found in urban settings and rarely in rural areas. Basra is often called "the city of Shanasheel".
Mashrabiya is derived from the triliteral root Š-R-B, which generally denotes drinking or absorbing. There are two theories for its name, the most common one is that the name was originally for a small wooden shelf where the drinking water pots were stored. The shelf was enclosed by wood and located at the window in order to keep the water cool. Later on, this shelf evolved until it became part of the room with a full enclosure and retained the name despite the radical change in use.
The second theory is that the name was originally mashrafiya, derived from the verb Ashrafa, to overlook or to observe. During the centuries the name slowly changed due to changing accents and influence of non-Arabs speaking Arabic.
There is no point in history that can be dated as the first time they appeared; however, the earliest evidence on use of the Mashrabiya as it currently is dates back to the 12th century in Baghdad during the Abbasid period. Whatever is left in Arabic cities is mostly built during the late 19th century and early-to-mid-20th century although some Mashrabiyas can be found that are three or four hundred years old.