Gewerkenegg Castle is a castle in the town of Idrija, in the Goriška region of western Slovenia. Its history is tied to the town's long mercury-mining past, and today it houses the Idrija municipal museum. It stands in the centre of Idrija, so a visit fits easily into a walk around the old mining town.