▁changes ▁were ▁confirmed ▁in ▁the ▁Lex ▁Reg ia '' ▁signed ▁on ▁ 1 4 ▁November ▁ 1 6 6 5 , ▁st ip ulating ▁that ▁all ▁power ▁lay ▁in ▁the ▁hands ▁of ▁the ▁king , ▁who ▁was ▁only ▁responsible ▁towards ▁God . ▁ ▁Sc an ian ▁War ▁ ▁Den mark ▁had ▁lost ▁its ▁provinces ▁in ▁Sc ania ▁after ▁the ▁Tre aty ▁of ▁Ros k ilde ▁and ▁was ▁always ▁eager ▁to ▁retrieve ▁them , ▁but ▁as ▁Sweden ▁had ▁grown ▁into ▁a ▁great ▁power ▁it ▁would ▁not ▁be ▁an ▁easy ▁task . ▁However , ▁Christian ▁V ▁saw ▁an ▁opportunity ▁when ▁Sweden ▁got ▁involved ▁in ▁the ▁Franco - D utch ▁War , ▁and ▁after ▁some ▁hes itation ▁Den mark – N or way ▁inv aded ▁Sweden ▁in ▁ 1 6 7 5 . ▁ ▁Although ▁the ▁Dan ish - N or weg ian ▁assault ▁began ▁as ▁a ▁great ▁success , ▁the ▁Sw edes ▁led ▁by ▁ 1 9 - year - old ▁Charles ▁XI ▁counter - att ack ed ▁and ▁took ▁back ▁the ▁land ▁that ▁was ▁being ▁occupied . ▁The ▁war ▁was ▁concluded ▁with ▁the ▁French ▁dict ating ▁peace , ▁with ▁no ▁permanent ▁g ains ▁or ▁losses ▁to ▁either ▁of ▁the ▁countries . ▁ ▁Napole onic ▁Wars ▁and ▁end ▁of ▁the ▁Union ▁ ▁During ▁the ▁French ▁Revolution ary ▁Wars ▁Den mark – N or way ▁at ▁first ▁tried ▁to ▁stay ▁neutral , ▁so ▁it ▁could ▁continue ▁its ▁trade ▁with ▁both ▁France ▁and ▁the ▁United ▁Kingdom , ▁but ▁when ▁it ▁entered ▁the ▁League ▁of ▁Ar med ▁Ne