Local tradition says Asmara began when four clans of the Kebessa plateau, whose villages lowland raiders kept attacking, agreed to unite. The women pushed for it, and the name Arbate Asmera means roughly "the four made them unite" in Tigrinya. The first written mention comes from a Latin itinerary in the reign of Emperor Dawit I, between 1382 and 1411. Enda Mariam cathedral stands on Arbate Asmara Street, which keeps the old name.
In the 19th century it was still a small village, passing between regional chiefs, the last of them Ras Alula. Italy occupied it in 1889, with the help of local chiefs. In 1897 Governor Ferdinando Martini made it capital of Italian Eritrea. A railway to the coast was built in the early 20th century.
The big build came in the 1930s. Mussolini wanted Asmara to anchor a second Roman Empire in Africa, and money poured in. Most of the centre dates from 1935 to 1941. By 1939 the city had 98,000 people, 53,000 of them Italian, and was nicknamed Piccola Roma, Little Rome. A walk through the middle of town still takes you past cinemas, villas and the futurist Fiat Tagliero building.
The city was built on segregation. Italian planners were told the law was one thing for whites and another for natives, and Eritrean children were barred from the elementary schools. Under the British, who took over in 1941, some of that ended. Schools opened to Eritrean children from 1943, and the British built over 100 of them by 1954. In 1943 Eritrean workers who found no seats on a city bus bought their own truck, fitted it with benches, and the Italian bus owner lost so much business that he sold them his bus.
In 1952 the United Nations federated Eritrea with Ethiopia, and Asmara stopped being a capital. In 1961 Haile Selassie ended the federation and made Eritrea Ethiopia's 14th province. The US Army ran its Kagnew Station in the city from 1943 to 1977. The war of independence began in 1961 and lasted until 1991.
Asmara came through the fighting relatively undamaged, as did most of the highlands. Residents still say the city was the aim of the struggle. Independence was declared in May 1993 after a referendum in which 99.83 percent voted yes, and the city became a capital again.
After independence, the city had to choose what to do with its colonial buildings. Residents pushed to keep them rather than tear them down: a citizen campaign stopped an office block from replacing the Caserma Mussolini barracks opposite the cathedral. In 2001 a historic core of about 4 square kilometres was put under protection, and UNESCO listed the city in July 2017, the first modernist city listed in its entirety. Since the 1998 to 2000 border war with Ethiopia, the country has been under an official state of emergency.