The Generalife (xe.ne.ɾa.ˈli.fe; جَنَّة الْعَرِيف) was a summer palace and country estate of the Nasrid rulers of the Emirate of Granada in Al-Andalus. It is located directly east of and uphill from the Alhambra palace complex in Granada, Spain. The most commonly cited etymology for the name "Generalife" is that it derives from jannat al-‘arīf (جَنَّة الْعَرِيف) which may variously mean "Garden of the Architect", "Garden of the Artist", "Garden of the Gnostic", or even "Garden of the Flautist". According to Robert Irwin, however, this traditional etymology is unlikely and the true origin of the name is not clearly known. An earlier version of the name recorded in the 16th century by Marmol was Ginalarife, which J.D. Latham suggests is evidence that the first word was originally jinan (جِنَاْن; a plural version derived from the same root), not jannat. The original name of the Generalife may have simply been the equivalent of "Principal Orchard". An ornamental inscription by Ibn al-Yayyab inside the palace names it as the Dar al-Mamlakat as-Sa'ida ("House of the Felicitous Kingdom"). In the Nasrid period, the Generalife was an almunia (from Arabic al-munya, meaning "farm"), a country villa that was used both as a private retreat by elites as well as a farming estate with agricultural functions. The creation of such rural estates and gardens by rulers and elites in al-Andalus dated back to the Umayyad period (8th-10th centuries). Such estates are also found in some historic cities of North Africa, such as the Agdal Gardens of Marrakesh, which have survived to the present day. Their existence in Granada is recorded as early as the Zirid period (11th century). Other Nasrid-period examples of this type were located on the nearby mountainside, such as the Alijares Palace and the Dar al-'Arusa (both probably from the 14th century), as well as in other parts of Granada, such as the Alcázar Genil and the Cuarto Real de Santo Domingo (both from the 13th century, the former being originally an Almohad construction).