The first people settled on the rock where the fortress now stands, in the 4th millennium BC. Later, in the Iron Age, a town called Scupi grew on a hill about 5 km to the west. The Romans made it a colony for legionaries, and it became the seat of a diocese. Not much survives: expect a stretch of street, a bath and a basilica, and little more.
In 518 a violent earthquake destroyed Scupi. Its people had left for the woods and hills before it struck, afraid of invaders. Justinian I had the city rebuilt on the promontory where the fortress stands, and builders reused the seats of the Roman theatre in its walls. Slavs sacked it at the end of the 6th century. For the next few hundred years the city changed hands between Byzantines, Bulgarians and Normans, and for twenty years from 972 it was the Bulgarian capital.
The Serbian king Stefan Milutin took the city in 1282. Under his dynasty it grew beyond the fortress walls, with new churches, monasteries and markets, and traders from Venice and Dubrovnik opened shops. In 1346 Stefan Dušan was crowned emperor of the Serbs and Greeks here, and Skopje was the capital of his empire. After his death the empire broke apart, and Skopje passed to the Ottomans in 1392. The churches of the Vardar school, built around 1300, still stand in the hills around Matka Canyon.
The Ottomans stayed for more than 520 years and gave the centre the shape you walk through now. They built the Stone Bridge and laid out the Old Bazaar, and Mustafa Pasha Mosque went up in 1492. Muslims were the majority of the city by the 15th century. In 1535 the governor ordered every church pulled down, and in 1555 another earthquake brought down much of the town. Even so, around 1650 Skopje had between 30,000 and 60,000 people, which made it one of the few big cities in the area that later became Yugoslavia.
The golden age ended in 1689. The Habsburg general Silvio Piccolomini seized the city during a cholera epidemic and set it alight, and it burned for two days. He died of plague soon after, and his army was routed. The fire destroyed the blue tiles of the Aladža Mosque, though a few survive on the tomb beside it. The oldest churches in the centre date from after the fire, and the Church of the Ascension is half buried so that it would not look down on neighbouring mosques. By around 1836 Skopje had only about 10,000 people.
Recovery began after 1850. The railway to Salonica opened in 1873, with its station south of the Vardar, and the city started to spread across a side of the river that had never been built up. Serbian troops reached Skopje in October 1912, during the First Balkan War. After the First World War it belonged to Yugoslavia, and in 1931 it became capital of the Vardar Banovina. Two odd buildings of 1938 stand out from the period: an Arab House in Neo-Moorish style and a Neo-Byzantine station. In 1941 Bulgaria took control, and in 1943 the 4,000 Jews of Skopje were deported to Treblinka, where almost all were killed.
At 05:17 on 26 July 1963 an earthquake hit the city. It killed 1,070 people and left 70% of residents without a home. The Japanese architect Kenzo Tange drew part of the rebuilding plan and the new railway station, and the aim was to make Skopje a model city of the socialist world. It was finished by 1980, though many elements were never built because the money ran out. The result is a city of large blocks, concrete and scattered green space. The old railway station, wrecked in the quake, now houses the City Museum.
By the 2000s the centre was seen as grey, and in 2010 the authorities unveiled Skopje 2014. It added statues, fountains, bridges and museums at about €500 million, in a historicist style. Critics objected to the cost and to the thin representation of minorities among the monuments at first, though some were added later. Whatever you think of it, the project has made Skopje a case study in how a country shows its idea of itself in stone.