Stanjel is said to be the jewel of the Karst region in Slovenia.
The Romans turned the top of the hill into an ancient fort, in the Middle Ages the village expanded over the hill, and later on the settlement was enclosed by defence walls to protect it against Turks invasion.
Badly damaged during the Second World War, part of the city has been restored and is still inhabited. The oldest remains of the castle reach back into the Middle Ages.
The Karst people always had to cope with the problem of the shortage of drinking water. A proof for that is also Stanjel with its numerous stone wells built in the squares.