Christianity became the religion of the kingdom of Aksum, in the northern Ethiopian highlands, in the fourth century. After the rise of Islam cut Aksum off from the Mediterranean, its heirs survived in the mountains as a Christian society largely on its own. The Zagwe dynasty, which ruled from the twelfth century, left the rock-hewn churches of Rock-Hewn Churches of Lalibela. In 1270 a nobleman named Yekuno Amlak overthrew the Zagwe and founded what is called the Solomonic dynasty.
The new rulers justified themselves with a national epic, the Kebra Nagast or Glory of Kings, compiled in the early fourteenth century. It told that the Queen of Sheba bore King Solomon a son, Menelik, who brought the Ark of the Covenant to Ethiopia, and that Ethiopia's kings descended from him. The claim joined royal blood to sacred history and made the emperor the defender of a chosen Christian people.
The medieval state was a mobile one. Emperors ruled from a vast traveling camp, moving through the provinces to collect tribute and fight. They rewarded soldiers and nobles with gult, rights to the produce of peasant communities, an arrangement often compared with European Feudalism. The Ethiopian Orthodox Church, whose head was appointed from the Coptic church in Egypt, held large estates, and monasteries spread the faith into newly conquered lands. Emperor Amda Seyon (r. 1314–1344) subdued neighboring Muslim sultanates that controlled the trade routes to the Red Sea, and Zara Yaqob (r. 1434–1468) centralized church and state. Exports of gold, ivory and enslaved people passed through Muslim merchants to the coast.
Europeans, who knew a legend of a Christian king called Prester John beyond the Islamic world, sought Ethiopia as an ally. The contact proved vital in the sixteenth century, when the sultanate of Adal, armed with Ottoman firearms, overran most of the kingdom; Portuguese musketeers helped the emperor win in 1543. A later attempt by Jesuits (Society of Jesus) to convert the country to Catholicism ended in their expulsion.
In the nineteenth century Menelik II rebuilt and enlarged the empire with imported rifles and, at the Battle of Adwa in 1896, routed an Italian army, keeping Ethiopia independent during the Scramble for Africa. Italy returned in the Italian Invasion of Ethiopia of 1935 and occupied the country until 1941. The last emperor, Haile Selassie, was deposed in 1974 by the military committee known as the The Derg.