Frederick IV was the reigning Duke of Holstein-Gottorp.
He was born in Gottorf Castle as the elder son of Duke Christian Albert of Holstein-Gottorp and Princess Frederica Amalia of Denmark. Wikipedia
Born: October 18, 1671, Gottorf Castle, Schleswig, Germany
Died: July 19, 1702 (age 30 years), Kliszów, Poland
Grandchild: Peter III of Russia
Spouse: Hedvig Sophia of Sweden (m. 1698)