Frederick VI (Danish and Frederik; 28 January 1768 3 December 1839) was King of Denmark from 13 March 1808 to 3 December 1839 and King of Norway from 13 March 1808 to 7 February 1814, making him 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" (kronprinsregent). For his motto he chose God and the just cause (Gud og den retfærdige sag) and since the time of his reign, succeeding Danish monarchs have also chosen mottos in the Danish language rather than the formerly customary Latin. As Frederick VI had no surviving sons to succeed him (only two daughters), he was succeeded on the throne of Denmark by his half-first cousin Christian, who was his father's half-brother's son.
The future King Frederick VI was born between 10 and 11 p.m. on 28 January 1768 in the Queen's Bedchamber at Christiansborg Palace, the royal residence in central Copenhagen. Born into the House of Oldenburg, the royal house which had ruled Denmark since its foundation there in the 15th century, he was the first child born to King Christian VII and Queen Caroline Mathilde of Denmark and Norway. He was born 15 months after his parents' wedding, the day before his father's 19th birthday, and while his mother was just 16 years old. The king had shown little interest in the queen after the marriage and only reluctantly visited her in her chambers. The king's advisors had to step in, among other things with love letters written in the king's name, in an attempt to make the marriage lead to a pregnancy and thus an heir to the throne.
Frederick's father had been king for two years at the time of the birth, and as the reigning king's eldest son, Frederick automatically became crown prince at birth, and thus replaced his father's half-brother, Hereditary Prince Frederick (Arveprins Frederik), as the heir to the throne. The young prince was baptised already two days after the birth on 30 January at Christiansborg Palace by Ludvig Harboe, Bishop of Zealand, and was named after his late grandfather, King Frederick V.