Probably built in the 14th century by Casimir III the Great, it was part of the defensive system of so-called Eagles' Nests.