Tržič is a town and municipality in northern Slovenia near the Austrian border (before the Loibl Pass). The first settlement was founded near the road that connected Roman city of Emona with Virunum in present-day Carinthia. After a landslide caused by an earthquake, the original settlement was destroyed and many people moved down the valley to establish a new settlement named Neumarktl where Tržič is now located (these events are the basis of the legend about the origin of Tržič). The town was granted market rights in 1492, which caused further development of the town.