Škofja Loka’s history is unusually long and unusually continuous for a town of its size. The land around the confluence of the Selca Sora and Poljane Sora rivers was granted to the Bishops of Freising in 973, and the town that grew above the confluence remained in their hands until 1803 — more than eight centuries under one distant lordship, one of the longest such tenures in the Slovene lands. Under the bishops’ stewardship the settlement was enclosed by defensive walls and developed as a craft and trading town: a place of smiths, shoemakers, bakers and merchants whose markets served the Poljane and Selca valleys above it. The medieval town grew around its two squares — Mestni trg, the upper town square, and Spodnji trg, the lower — with the castle rising on the hill above and the Capuchin Bridge, later known as the Stone Bridge, carrying the road across the Selca Sora. The great earthquake of 1511 was the town’s catastrophe and, indirectly, the making of its present face: the quake seriously damaged the town and its castles, and much of the town was rebuilt in stone in the decades that followed, giving the old centre the uniform stone character that survives today. The Capuchins arrived in the seventeenth century, and their monastery and library became the keepers of the town’s most famous manuscript — the Škofja Loka Passion, the oldest preserved play text in the Slovenian language, dated to 1721, written for performance in the town’s streets and squares. The performance tradition that grew from that text was inscribed on UNESCO’s Representative List of the Intangible Cultural Heritage of Humanity in 2016 — not as a continuous or annual event, but as a living heritage that is realised when the community stages it; the current programme must be checked directly. When the bishops’ rule ended in 1803, the town settled into the quieter role it holds today: a small regional centre whose old core — the walls’ line, the two squares, the bridge, the monastery and the castle — is among the most complete medieval townscapes in Slovenia, with Loka Castle restored to house the Škofja Loka Museum and the Three Castles Path recalling the fortified landscape — Loka Castle, the ruins at Krancelj and the Old Castle, or Wild Loka — that once guarded it.