In the 17th century, the castle was no longer used as a defensive building by the Swedes who now ruled the Swedish Estonian Province.
The castle's function as a defensive structure ceased in the 17th century when the Swedes who governed the Swedish Estonian Province stopped using it for that purpose.