Debrecen (ˈdɛbrətsɛn , ˈdɛbrɛt͡sɛn; Debrețin) is Hungary's second-largest city, after Budapest, the regional centre of the Northern Great Plain region and the seat of Hajdú-Bihar County. A city with county rights, it was the largest Hungarian city in the 18th century and it is one of the Hungarian people's most important cultural centres. Debrecen was also the capital city of Hungary during the revolution in 1848–1849. During the revolution, the dethronement of the Habsburg dynasty was declared in the Reformed Great Church. The city also served as the capital of Hungary by the end of World War II in 1944–1945. It is home to the University of Debrecen. The city is first documented in 1235, as Debrezun. The name derives from the Turkic word debresin, which means 'live' or 'move' and is also a male given name. Another theory says the name is of Slavic origin and means 'well-esteemed', from Slavic Dьbricinъ or from dobre zliem ("good land"). The standard Romanian name for the city is Debrețin, however Romanian communities in Hungary use the version Dobrițân. Timeline of Debrecen The settlement was established after the Hungarian conquest. Debrecen became more important after some of the small villages of the area (Boldogasszonyfalva, Szentlászlófalva) were deserted due to the Mongol invasion of Europe. It experienced rapid development after the middle of the 13th century. In 1361, Louis I of Hungary granted the citizens of Debrecen the right to choose the town's judge and council. This provided some opportunities for self-government for the town. By the early 16th century, Debrecen was an important market town. King Sigismund, Holy Roman Emperor, as part of a treaty with Serbian ruler Stefan Lazarević, gave him the opportunity to rule Debrecen in September 1411. A year after Lazarević's death in 1426, his role was taken over by his successor, Đurađ Branković. Between 1450 and 1507, it was a domain of the Hunyadi family.