His mother was Charlotte, daughter of William VI,
Landgrave of
Hesse-Kassel. Without divorcing his first queen,
Louise of Mecklenburg-Güstrow whom he had wed
5 December 1695, Frederick carried off the 19 year-old Countess
Anne Sophie Reventlow from her home in Clausholm near
Randers on
26 June 1712 and secretly wed her at
Skanderborg. At that time he accorded her the title "Duchess of Schleswig" (derived from one of his own subsidiary titles). Three weeks after Queen Louise's death in Copenhagen on
4 April 1721, he married her again, this time declaring her queen (the only wife of an hereditary Danish king to bear that title who was not a princess by birth). Of the eight children born to him of these two wives, only two survived to adulthood,
Christian VI and the spinster princess, Charlotte-Amalia, both from the first marriage.
Nonetheless, much of the king's life was spent in strife with kinsmen.
Charles XII of Sweden and
Frederick IV, Duke of Holstein-Gottorp were his
first cousins and had waged war upon his father jointly. Initially defeated by the Swedes and forced to recognize the independence of Holstein-Gottorp, Frederick finally drove
Duke Charles Frederick out of Schleswig in 1713, and avoided the revenge contemplated by the duke's mother-in-law,
Catherine I of Russia.
The Reventlows took advantage of their kinship to the king to
aggrandize. Within a year of conferring the
crown matrimonial on Countess Reventlow, Frederick also recognized as
dynastic the issue of the
morganatic marriages of two of his kinsmen, Duke Philip Ernest of Schleswig-Holstein-Glucksburg (1673–1729) and Duke Christian Charles of Schleswig-Holstein-Plön-Norburg (1674-1706), to non-royal noblewomen. The other Schleswig-Holstein dukes of the
House of Oldenburg perceived their interests to be injured, and Frederick found himself embroiled in their complicated lawsuits and petitions to the
Holy Roman Emperor. Also offended by the countess's elevation were King Frederick's younger, unmarried siblings, Princess Sophia Hedwig (1677–1735) and Prince Charles (1680–1729, who withdrew from Copenhagen to their own rival court at the handsomely re-modelled
Vemmetofte Cloister (later a haven for
dowerless damsels of the nobility.
During King Frederick's last years he was afflicted with weak health and private sorrows that inclined him toward
Pietism. That form of faith would rise to prevalence during the reign of his son. On his death in
1730, Frederick IV was interred in
Roskilde Cathedral.