▁Master ▁ ▁Diet rich ▁von ▁Gr ü ningen ▁and ▁served ▁to ▁secure ▁the ▁southern ▁part ▁of ▁the ▁army ▁road ▁from ▁R iga ▁to ▁ ▁Gold ingen . ▁It ▁was ▁built ▁as ▁a ▁regular ▁Order ▁Castle ▁with ▁a ▁for ep art , ▁a ▁corner ▁tower ▁and ▁wooden ▁buildings ▁in ▁the ▁yard . ▁ ▁For ▁ 1 3 4 1 ▁Has en p oth ▁is ▁called ▁as ▁belonging ▁to ▁the ▁Command ery ▁Gold ingen ▁and ▁is ▁in ▁ 1 3 9 7 ▁and ▁ 1 4 3 0 ▁explicitly ▁referred ▁to ▁as ▁the ▁castle ▁of ▁the ▁Order . ▁Castle ▁Has en p oth ▁gained ▁importance ▁as ▁a ▁border ▁castle ▁between ▁religious ▁and ▁epis cop al ▁areas , ▁the ▁bishop ▁maintained ▁a ▁castle ▁here , ▁so ▁that ▁these ▁cast les ▁were ▁referred ▁to ▁as ▁Bishop ▁Has en p oth ▁and ▁Order ▁Has en p oth . ▁In ▁ 1 5 th ▁century ▁outside ▁of ▁the ▁castle ' s ▁walls ▁was ▁built ▁new ▁eastern ▁block . ▁The ▁Order ▁used ▁it ▁until ▁Order ▁collapse ▁after ▁Tre aty ▁of ▁Vil nius ▁( 1 5 6 1 ). ▁▁ ▁During ▁the ▁Duch y ▁of ▁Cour land ▁and ▁Sem ig all ia , ▁the ▁castle ▁was ▁restored ▁and ▁from ▁that ▁time ▁the ▁entrance ▁gate ▁retain s ▁pl aster ▁with ▁rich ▁and ▁decor ative ▁decor ation ▁in ▁s gra ff ito ▁technique . ▁During ▁Second ▁Northern ▁War ▁( 1 6 5 5 – 1 6 6 0 ), ▁the ▁castle ▁was ▁dev ast ated ▁by ▁the ▁Swedish ▁troops . ▁In ▁ 1