At the time of the accession, Prussia was at war with Sweden, and Sophia Dorothea accompanied Frederick William during the campaign of 1715, though she soon returned to Berlin to give birth to her daughter. During the war, the king left directions to his ministers to consult her and take no action without her approval in the case of emergency. In 1717, she hosted Peter the Great on his visit to Berlin at her own palace Monbijou, as per the king's request, which was vandalized as a result. Sophia Dorothea's first favorite was her maid of honor, von Wagnitz, who was dismissed after an intrigue in which Kreutz and her mother tried to make her the king's mistress, as well as being a spy of the French ambassador Rothenburg.