Frederick VI was King of Denmark from 13 March 1808 until his death in 1839 and King of Norway from 13 March 1808 to 7 February 1814. He was the last king of Denmark–Norway. From 1784 until his accession, he served as regent during his father's mental illness and was referred to as the "Crown Prince Regent". For his motto he chose God and the just cause and since the time of his reign, succeeding Danish monarchs have also chosen mottos in the Danish language rather than the formerly customary Latin.