Samobor Castle is a ruin on Tepec hill in Samobor, Croatia, about a ten-minute walk from the town center. It stands above a crossroads in the northwestern Sava valley. Supporters of the Bohemian king Ottokar II built it between 1260 and 1264, during his war with the Hungarian king Stephen V. Croatian-Hungarian forces under the duke of Okić soon retook it.
In the 1520s or so the castle was expanded northward into a trapezoidal courtyard with pentagonal towers, and a small Gothic chapel of St. Ana dates from the same period. A three-storey Baroque house was added on the south side. The last residents left in the late 18th century, and the castle decayed.
The southeastern guard tower is the only part that survives from the 1260s. The municipality bought the castle in 1902, and it has been open to the public since the 19th century.

Comments