Transylvania the Romanian population of Transylvania gathered in Alba Iulia on 1 December 1918 to proclaim the union of Transylvania with the Kingdom of Romania. In Transylvania, there are many medieval smaller towns such as Sighișoara, Mediaș, Sebeș, and Bistrița. Official censuses with information on Transylvania's population have been conducted since the 18th century. On May 1, 1784 the Emperor Joseph II called for the first official census of the Habsburg Empire, including Transylvania. The data was published in 1787, and this census showed only the overall population (1,440,986 inhabitants). , a 19th-century Hungarian statistician, estimated in 1842 that in the
History of Transylvania (and briefly under Habsburg suzerainty) until 1602. The younger Stephen Báthory, a Hungarian Catholic who later became King Stephen Báthory of Poland, tried to maintain the religious liberty granted by the Edict of Turda but interpreted this obligation in an increasingly restricted sense. Under Sigismund Báthory, Transylvania entered the Long War, which began as a Christian alliance against the Turks and became a four-sided conflict in Transylvania involving the Transylvanians, Habsburgs, Ottomans and the Romanian voivod of Wallachia led by Michael the Brave. Michael gained control of Transylvania (supported by the Szeklers) in October 1599 after the Battle of Șelimbăr,