|Historic region||Lower Carniola / Dolenjska|
|Statistical region||Osrednjeslovenska (Central Slovenia)|
|local community||Ivančna Gorica|
|Telephone code||(+386) 01|
|Structure and administration|
The settlement is located in the Ivančna Gorica commune on the A2 motorway between Ljubljana and Novo mesto . The historic city center is located on a mountain 384 m above sea level under the ruins of the old fortress . The modern settlement, on the other hand, is located at an altitude of 308 m, 20 km southwest of Ljubljana in the Višnjica Valley.
The military settlement of Magnisna was located on the territory of today's city in Roman times. In just a few decades, water pipes built by the Romans were opened in Višnja Gora. The castle was mentioned early in 1152 in connection with a donation to a parakeet : one of the witnesses is Meginhalmus de Wisilpurc . The first settlement, the old market ("Stari trg"), is only mentioned in the written sources in 1269 . The settlement has survived to this day and is located under the hill. At that time Višnja Gora already had its own seal and some commercial rights . King Friedrich III. proclaimed Višnja Gora as a place in 1444. Because of the increasing number of Turkish attacks, the place was moved to the higher hill. The protective systems were built, which were also one of the reasons why Friedrich III. on July 9, 1478 gave the place at that time city rights. The other reason was the important geographical location in the fight against attacks by the Turks. Some of the protective structures and walls as well as the ruins of the “old fortress” from the 11th century have been preserved from the medieval settlement .