Construction, widening and reconstruction of the stronghold went on throughout several centuries, with the architecture changing according to the development of weapons.
In the 17th century, the castle was no longer used as a defensive building by the Swedes who now ruled the Swedish Estonian Province.