Granada ( ; ) is the capital city of the province of Granada, in the autonomous community of Andalusia, Spain. Granada is located at the foot of the Sierra Nevada mountains, at the confluence of four rivers, the Darro, the Genil, the Monachil and the Beiro. Ascribed to the Vega de Granada comarca, the city sits at an average elevation of above sea level, yet is only one hour by car from the Mediterranean coast, the Costa Tropical. With a population of 233,532 as of 2024, it is the 20th-largest city in Spain.

Nearby is the Sierra Nevada Ski Station, where the FIS Alpine World Ski Championships 1996 were held. Its nearest airport is Federico García Lorca Granada-Jaén Airport.

The area was settled since ancient times by Iberians, Romans, and Visigoths. The current settlement became a major city of Al-Andalus in the 11th century during the Zirid Taifa of Granada. In the 13th century it became the capital of the Emirate of Granada under Nasrid rule, the last Muslim-ruled state in the Iberian Peninsula. Granada was conquered in 1492 by the Catholic Monarchs and progressively transformed into a Christian city over the course of the 16th century.

The Alhambra, a medieval Nasrid citadel and palace, is located in Granada. It is one of the most famous monuments of Islamic architecture and one of the most visited tourist sites in Spain. Islamic-period influence and Moorish architecture are also preserved in the Albaicín neighborhood and other medieval monuments in the city. The University of Granada has an estimated 47,000 undergraduate students spread over five different campuses in the city. The pomegranate () is the heraldic device of Granada.

Etymology

Granada's historical name in the Arabic language was ('). Both the name's meaning and origin are uncertain and have been debated. The toponym definitely existed prior to the Zirid period in the 11th century. Another meaning might be "hill of pilgrims". The name Elibyrge is also attested in reference to this area. This settlement became later known as Iliberri or Iliberis. Modern archeological digs on the Albaicín hill have uncovered finds demonstrating the presence of a significant Roman town on that site. Little is known, however, about the history of the city in the period between the end of the Roman era and the 11th century. An important Christian synod circa 300 AD, the Synod of Elvira, took place near this area (the name Elvira being derived from the name Iliberri), but there is no concrete archeological or documentary evidence establishing the exact location of the meeting. It may have taken place in the former Roman town or it may have taken place somewhere in the surrounding region, which was known as Elvira.

Founding and early history

The Umayyad conquest of Hispania, starting in 711AD, brought large parts of the Iberian Peninsula under Moorish control and established al-Andalus. The earliest Arabic historical sources mention that a town named Qashtīliya, later known as Madīnat Ilbīra (Elvira), was located on the southern slopes of the Sierra de Elvira mountains (near present-day Atarfe) and became the most important settlement in the area.

At the beginning of the 11th century, the area became dominated by the Zirids, a Sanhaja Berber group and offshoot of the Zirids who ruled parts of North Africa. This group became an important contingent in the army of ʿAbd al-Malik al-Muẓaffar, the prime minister of Caliph Hisham II (r. 976–1009) and successor to Ibn Abi ʿAmir al-Mansur (Almanzor) as de facto ruler of the Caliphate of Córdoba. For their service, the Zirids were granted control of the province of Elvira. Because Madīnat Ilbīra was situated on a low plain and, as a result, difficult to protect from attacks, the ruler decided to transfer his residence to the higher situated area of Ġarnāṭa. According to Arabic sources Ilbīra was razed during the Fitna, afterwards it was not restored at its previous place and instead Ġarnāṭa, the former Jewish town, replaced it as the main city. In a short time this town was transformed into one of the most important cities of al-Andalus. Until the 11th century it had a mixed population of Christians, Muslims, and Jews.

thumb|Puerta Monaita, one of the 11th-century Zirid gates in the [[Albaicín|Albaicin]]

The Zirids built their citadel and palace, known as the al-Qaṣaba al-Qadīma ("Old Citadel"), on the hill now occupied by the Albaicín neighborhood. During this period, the Muslim king was looked upon as a mainly symbolic figurehead. Granada was the centre of Jewish Sephardi culture and scholarship. According to Daniel Eisenberg:

After Samuel's death, his son Joseph took over after his position but proved to lack his father's diplomacy, bringing on the 1066 Granada massacre,