Szepes (Spiš; Scepusium, Spisz, Zips) was an administrative county of the Kingdom of Hungary, called Scepusium before the late 19th century. Its territory today lies in northeastern Slovakia, with a very small area in southeastern Poland. For the current region, see Spiš.
Szepes county shared borders with Poland and with the counties as follows: Liptó, Gömör-Kishont, Abaúj-Torna and Sáros. After the late 18th century dismemberment of Poland, the border was with the Austrian province of Galicia. Its area was 3,668 km2 in 1910. The county became part of Czechoslovakia, apart from a very small area now in Poland, after World War I, and is now part of Slovakia (and Poland).
The original seat of government of Szepes county was Spiš Castle (Szepesi vár), which was constructed in the 12th century. Unofficially from the 14th century, and officially from the 16th century, until 1920 the capital of the county was Lőcse (present-day Levoča).
This article only covers the history of Szepes when it was part of the Kingdom of Hungary (approx. 11th century – 1920). For a complete history of the region see Spiš.
The southern part of Szepes was conquered by the Kingdom of Hungary at the end of the 11th century, when the border of the Kingdom ended near Késmárk (present-day Kežmarok). The royal county of Szepes (comitatus Scepusiensis) was created in the second half of the 12th century. In the 1250s, the border of the Kingdom of Hungary shifted to the north to Podolin (present-day Podolínec) and in 1260 – in the northwest – to the Dunajec river. The northeastern region around Gnézda (present-day Hniezdne) and Ólubló (present-day Stará Ľubovňa) (the so-called "districtus Podoliensis") were incorporated only in the 1290s. The northern border of the county stabilized in the early 14th century. Around 1300, the royal county became a noble county.
The subsidiary of the Hungarian Chamber (the supreme Habsburg financial and economy institution in the Kingdom of Hungary) responsible for eastern territories (i.e.