The Order castle was built during the 14th century, on the site of an older Latgallian fortress. It withstood Russian and Swedish attacks in the 15 up to 18th centuries, but was already reported as a ruin in 1756.