Frederick VI (Danish and Norwegian: Frederik; 28 January 1768 – 3 December 1839) 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" (Norwegian: kronprinsregent). For his motto he chose God and the just cause (Danish: Gud og den retfærdige sag). Instead of the customary Latin, he used Danish, which established a precedent for later Danish kings who used Danish as well.
Born in Christiansborg Palace, Copenhagen, Frederick VI was the eldest of two children and the only son of Christian VII and Caroline Mathilde. In 1790, Frederick VI married Marie Sophie. Together, they had eight children, though only two daughters, Princess Caroline and Princess Wilhelmine, survived to adulthood. Additionally, He was the last Danish king to have an official mistress, Frederikke Dannemand, with whom he had five children.