 Minority populations are greatest in Transylvania and the Banat, areas in the north and west of the country, which were part of the Kingdom of Hungary (after 1867 the Austria-Hungary) until the end of World War I.Even before the union with Romania, ethnic Romanians comprised the overall majority in Transylvania.However, ethnic Hungarians and Germans were the dominant urban population until relatively recently, while Hungarians still constitute the majority in Harghita and Covasna counties.