The history of Nyíregyháza, one of the largest cities in northeastern Hungary, dates back to the early Middle Ages. The first written mentions of the settlement date back to 1209, when it was known as "Nyír," which means "birch" in Hungarian. The city received its full name later, after a church was built here in 1236 — the word "egyház" (church) was added to the name. Thus, Nyíregyháza literally translates to "birch church."
A key factor in the early history of the city was its geographical location. In the Middle Ages, it was a small settlement, with about 400 inhabitants by the 15th century. However, in the 16th century, during the Ottoman rule, the city was destroyed and virtually abandoned. A new stage of development began only in the 18th century, when colonists — mainly Slovaks known as "Tirpaks" — began to move here actively. This influx of population contributed to the restoration and growth of the city. In 1786, Nyíregyháza received city status with the right to hold fairs, which strengthened its commercial importance in the region.
The economic and cultural establishment of Nyíregyháza accelerated in the 19th century. At the beginning of the century, the city was able to buy its independence from feudal lords, gaining more autonomy. A major event was the construction of the railway in 1858, which linked Nyíregyháza with other major centers and gave a powerful boost to industrialization. In 1876, the city became the administrative center of Szabolcs County, finally securing its status as the key political and economic hub of northeastern Hungary.