Ceuta (; , Sibtah) is an autonomous city of Spain and an exclave located on the north coast of Africa, sharing a western border with Morocco. Separated from the Iberian peninsula by the Strait of Gibraltar, Ceuta lies along the boundary between the Mediterranean Sea and the Atlantic Ocean. Ceuta, along with the Spanish exclave Melilla, is one of two permanently inhabited Spanish territories in mainland Africa. It was part of Cádiz province until 14 March 1995, when the city's Statute of Autonomy was passed.
Ceuta, like Melilla, was a free port before Spain joined the European Union. As of 2011, it has a population of 82,376. Its population consists of Christians, Muslims (chiefly Arabic and Berber speakers), and small minorities of Jews and Indian Hindus. Spanish is the official language. The majority of the city's population are ethnic Spanish who are opposed to the idea of being ruled by Morocco. A poll conducted by Instituto Opina found that 87.9% of people from mainland Spain consider the two cities (Ceuta and Melilla) to be Spanish.
After being controlled by the Visigoths, it then became an outpost of the Byzantine Empire (in Greek Abyla). Ceuta was an important Christian center since the fourth century (as recent discovered ruins of a Roman basilica show), and consequently is the only place in the Maghreb where the Roman heritage has survived continuously until modern times.
Around 710, as Muslim armies approached the city, its Byzantine governor, Julian (described as King of the Ghomara) changed his allegiance, and exhorted the Muslims to invade the Iberian Peninsula. Under the leadership of the Berber general Tariq ibn Ziyad, the Muslims used Ceuta as a staging ground for an assault on Visigothic Iberian Peninsula. After Julian's death, the Berbers took direct control of the city, which the indigenous Berber tribes resented. They destroyed Ceuta during the Kharijite rebellion led by Maysara al-Matghari in 740.
Ceuta lay in ruins until it was resettled in the 9th century by Mâjakas, chief of the Majkasa Berber tribe, who started the short-lived Banu Isam dynasty. His great-grandson briefly allied his tribe with the Idrisids, but the Banu Isam rule ended in 931 when he abdicated in favor of Abd ar-Rahman III, the Umayyad Caliph of Cordoba. Ceuta reverted to Moorish Andalusian rule in 927 along with Melilla, and later Tangier, in 951.
Chaos ensued with the fall of the Umayyad caliphate in 1031. Following this Ceuta and the rest of Muslim Iberia were controlled by successive North African dynasties. Starting in 1084, the Almoravid Berbers ruled the region until 1147, when the Almohads conquered the land. Apart from Ibn Hud's rebellion of 1232, they ruled until the Tunisian Hafsids established control. The Hafsids' influence in the west rapidly waned, and Ceuta's inhabitants eventually expelled them in 1249. After this, a period of political instability persisted, under competing interests from the Kingdom of Fez and the Kingdom of Granada. The Kingdom of Fez finally conquered the region in 1387, with assistance from the Crown of Aragon.
In 1415, during the Battle of Ceuta, the city was captured by the Portuguese during the reign of John I of Portugal. The Benemerine sultan besieged the city in 1418 but was defeated. Phillip II (King of Spain 1556-1598), ascended the Portuguese throne in 1580 and Spanish kings of Portugal governed Ceuta for 60 years (Iberian Union). During this time, Ceuta attracted many residents of Spanish origin. Ceuta became the only city of the Portuguese Empire that sided with Spain when Portugal regained its independence in 1640, and war broke out between the two countries.
On 1 January 1668 by the Treaty of Lisbon, King Afonso VI of Portugal recognized the formal allegiance of Ceuta to Spain and formally ceded Ceuta to King Carlos II of Spain. However, the originally Portuguese flag and coat of arms of Ceuta remained unchanged, and the modern-day Ceuta flag features the configuration of the Portuguese shield. The flag has the same background as that of the flag of the city of Lisbon. The city was besieged by Moroccan forces under Moulay Ismail from 1694 to 1727.
In July 1936, General Francisco Franco took command of the Spanish Army of Africa and rebelled against the Spanish republican government; his military uprising led to the Spanish Civil War of 1936-1939. Franco transported troops to mainland Spain in an airlift using transport aircraft supplied by Germany and Italy. Ceuta became one of the first casualties of the uprising: General Franco's rebel nationalist forces repressed the citizens of Ceuta, while at the same time the city came under fire from the air and sea forces of the official republican government.
A monument was erected to honour Francisco Franco; the Llano Amarillo, inaugurated on 13 July 1940, still stands. The tall obelisk has been abandoned, but the shield symbols of the Falange and Imperial Eagle remain visible.
When Spain recognized the independence of Spanish Morocco in 1956, Ceuta and the other plazas de soberanía remained under Spanish rule. Spain considered them integral parts of the Spanish state, but Morocco has disputed this point.
Culturally, modern Ceuta is part of the Spanish region of Andalusia. It was attached to the province of Cádiz until 1925, the Spanish coast being only 20 km (12.5 miles) away. It is a cosmopolitan city, with a large ethnic Berber Muslim minority as well as Sephardic Jewish and Hindu minorities.
On 5 November 2007, King Juan Carlos I visited the city, sparking great enthusiasm from the local population and protests from the Moroccan government. It was the first time a Spanish head of state had visited Ceuta in 80 years.
Since 2010, Ceuta (and Melilla) have declared the Muslim holiday of Eid al-Adha or Feast of the Sacrifice, as an official public holiday. It is the first time a non-Christian religious festival has been officially celebrated in Spain since the Reconquista.
The Catholic Diocese of Ceuta existed from 1417 to 1879. It was a suffragan of the Patriarchate of Lisbon until 1675 and the end of the Iberian Union, when Ceuta chose to remain linked to the king of Spain. Since then it has been a suffragan of the archbishopric of Seville. The Diocese of Tanger was suppressed and incorporated to that of Ceuta in 1570.
In 1851, upon the signature of the concordat between the Holy See and Spain, the diocese of Ceuta was agreed to be suppressed, being combined into the diocese of Cádiz y Ceuta. Until then in the diocese of Cádiz y Algeciras, the bishop was usually the apostolic administrator of Ceuta. The agreement was not implemented until 1879.