Huns in 441 and devastated in 448, and again in 480 when the partially-rebuilt town was demolished by the Barbarians. Byzantine Emperor Justinian I restored the town but it was destroyed by the Avars once again. The Slavs, in their campaign against Byzantium, conquered Niš and settled here in 540. Middle Ages In 805, the town and its surroundings were taken by Bulgarian Emperor Krum. In the 11th century Byzantium reclaimed control over Naissus and the surrounding area. King Solomon of Hungary and Prince Géza marched along the valley of the river Great Morava as far as Niš. The Hungarians seized the Byzantine city without any resistance in 1072. During the People's Crusade, on 3 July 1096, Peter the Hermit clashed with Byzantine forces at Naissus. Manuel I fortified the town, but under his successor Andronikos I it was seized by the Hungarian king Béla III. Byzantine control was eventually reestablished, but in 1185 it fell under Serbian control. By 1188, Niš became the capital of Serbian king Stefan Nemanja. On 27 July 1189, Nemanja received German emperor Frederick Barbarossa and his 100,000 crusaders at Niš. Niš is mentioned in descriptions of Serbia under Vukan in 1202, highlighting its special status. In 1203, Kaloyan of Bulgaria annexed Niš. Stefan Nemanjić later regained the region. Ottoman period The fall of the Serbian Empire, which was conquered by Ottoman Sultan Murad I in 1385, decided the fate of Niš as well. After a 25-day-long siege the city fell to the Ottomans. It was returned to Serbian rule in 1443. Niš again fell under Ottoman rule in 1448, and remained thusly for 241 years. During Ottoman rule Niš was a seat of the empire's military and civil administration. A Silesian traveler stated in 1596 that the route from Sofia to Niš was littered with corpses and described the gates of Niš as bedecked with the freshly-severed heads of poor Bulgarian peasants. In 1689, Niš was seized by the Austrian army during the Great Turkish War, but the Ottomans regained it in 1690. In 1737, Niš was again seized by the Austrians, who attempted to rebuild the fortifications around the city. The same year, the Ottomans reclaimed the city without resistance. During the First Serbian uprising in 1809, Serbian revolutionaries attempted to liberate Niš in the Battle of Čegar. After the defeat of the Serbian forces, the Ottoman commander of Niš ordered the heads