The area has been inhabited since ancient times – archaeological findings date back to the Paleolithic, proving human presence for over 70,000 years. Its first known dwellers were the Cotini, one of the Celt tribes. The area has been occupied by Hungarians since the "Conquest" in the late 9th century. It was named after the Miskóc clan and was first mentioned by this name around 1210 AD. The Miskóc clan lost their power when King Charles I centralized his power by curbing the power of the oligarchs.
Miskolc was elevated to the rank of opium (market town) in 1365 by King Louis I. He also had the castle of the nearby town Diósgyőr (now a district of Miskolc) transformed into a Gothic fortress. The city developed in a dynamic way, but during the Ottoman occupation of most of Hungary the development of Miskolc was brought to a standstill. The Turks burnt Miskolc in 1544 and the city had to pay heavy taxes until 1687. It was during these years that Miskolc became an important centre of wine-growing. By the end of the 17th century the population of the city was as large as that of Kassa, and 13 guilds had been founded.
During the war of independence against Habsburg rule in the early 18th century, Prince Francis II Rákóczi, the leader of the Hungarians put his headquarters in Miskolc. The imperial forces sacked and burnt the city in 1707. Four years later half of the population fell victim of a cholera epidemic. Miskolc recovered quickly, and another age of prosperity began again. In 1724, Miskolc was chosen to be the city where the county hall of Borsod county would be built. Many other significant buildings were built in the 18th and 19th centuries, including the city hall, schools, churches, the synagogue, and the theatre. The theatre is commonly regarded as the first stone-built theatre of Hungary, although the first one was actually built in Kolozsvár (then a part of Hungary, now Cluj-Napoca, Romania). According to the first nationally held