Answer
Frederick VI, was King of Denmark and Norway from 1808 to 1814 and King of Denmark from 1814 to his death in 1839, appointed Ørsted as his court physicist. Ørsted's contributions to the field of electromagnetism, particularly his discovery of the magnetic effects of electric current, earned him recognition and led to his appointment as the King's court physicist.