Christian was the son of Frederick II , king of Denmark-Norway , and Sofie of Mecklenburg-Schwerin . He was born at Frederiksborg castle in 1577 . The son of Frederick II , king of Denmark-Norway , and Sofie of Mecklenburg-Schwerin , he was born at Frederiksborg castle in 1577 .