Szepes County
Carpathian Germans chiefly from Bavaria began to settle the formerly Slavic settlement during the 13th century. By 1264 it was an established mining town and became a royal mining town of the Kingdom of Hungary by 1276, from where the first mentioned is recorded (as "Gelnic"). For many years Gelnica was a chief mining town in Szepes County of the Kingdom of Hungary. Silver, copper, but also gold, quicksilver, lead and iron ore were mined in the mines. Between 1465–1520, Gelnica lost most of its privileges. The town's population in the second half of the 16th century is estimated at 1000 people, whereby the ratio of Germans and Slovaks, who were the main ethnic groups, is estimated to have been 3:1. In 1910, the town's population of 3833 inhabitants consisted of 2095 Germans, 1098 Slovaks and 606 Hungarians. The German population was expelled in 1945.