In 1744, the palace was given as a gift from King Frederick I to the then Crown Princess, later Queen of Sweden, Louisa Ulrika of Prussia when she married Adolf Frederick of Sweden, who became King of Sweden in 1751. During Louisa Ulrika's ownership of Drottningholm the interior of the palace was transformed into a more sophisticated French rococo style. Louisa Ulrika was also responsible for having the Drottningholm Palace Theatre rebuilt in a grand style after the more modest original building burnt down in 1762. Louisa Ulrika and Adolf Fredrick continued to reside at the palace during their reign (1751–1771). In 1777, Louisa Ulrika sold Drottningholm to the Swedish state.