Scharzfels Castle (German: Burgruine Scharzfels) is the medieval ruin of a fortification located east of the village of Scharzfeld in the borough of Herzberg am Harz in central Germany. It lies in a wood on a ridge about 150 m above the Oder valley. For centuries after its construction in the 10th or 11th century it remained an impregnable fortress. The inner ward is built on a dolomite rock outcrop about 20 m high. The castle was first captured after a siege in 1761 during the Seven Years' War and then blown up.