As crown prince, Frederick broadened his education by travelling in Europe, led by his chamberlain Ditlev Wibe.
He was particularly impressed by the architecture in Italy and, on his return to Denmark, asked his father, Christian V, for permission to build a summer palace on Solbjerg, as the hill in Valby was then known, the future site of Frederiksberg Palace.
The one-story building, probably designed by Ernst Brandenburger, was completed in 1703.

Frederick was allowed to choose his future wife from a number of Protestant royal daughters in northern Germany.
In 1695, he visited the court of Gustav-Adolph in Güstrow.
But his visit there was cut short by a message telling of his brother Christian's serious illness (he had, in fact, already died in Ulm).
Frederick later returned to Güstrow, where he was forced to choose the eldest of the unmarried princesses.
On 5 December 1695 at Copenhagen Castle, he married Louise of Mecklenburg-Güstrow, herself a great-great-granddaughter of Frederick II of Denmark.
 The couple were crowned King and Queen of Denmark-Norway on 25 August 1699 in the Frederiksborg Chapel.
As crown prince, Frederick broadened his education by travelling in Europe, led by his chamberlain Ditlev Wibe. He was particularly impressed by the architecture in Italy and, on his return to Denmark, asked his father, Christian V, for permission to build a summer palace on Solbjerg, as the hill in Valby was then known, the future site of Frederiksberg Palace. The one-story building, probably designed by Ernst Brandenburger, was completed in 1703.
Frederick was allowed to choose his future wife from a number of Protestant royal daughters in northern Germany. In 1695, he visited the court of Gustav-Adolph in Güstrow. But his visit there was cut short by a message telling of his brother Christian's serious illness (he had, in fact, already died in Ulm). Frederick later returned to Güstrow, where he was forced to choose the eldest of the unmarried princesses. On 5 December 1695 at Copenhagen Castle, he married Louise of Mecklenburg-Güstrow, herself a great-great-granddaughter of Frederick II of Denmark.  The couple were crowned King and Queen of Denmark-Norway on 25 August 1699 in the Frederiksborg Chapel.
Frederick IV of Denmark