The Riksdag of 1738–39 ended with a new government of the Hats party. The Hat government was allied with France against Russia. They reportedly also used the matter of Hedvig Taube as a tool to control the king. When the king's brother William of Hesse married a British princess, the king accepted British money to Hesse, in his capacity as Landgrave of Hesse. This resulted in a crisis between the king and the Hats government, who saw the alliance between Sweden ad France undermined and discredited by the alliance between Great Britain and Hesse, as Hesse and Sweden was at the time united by a personal union. This crisis was used by the British-supported Caps party, who believed that they would be given the king's support, if only Taube, the Hats pressure tool, was removed. The king's brother William of Hesse, regent of Hesse in his absence and heir to the throne of Hesse, were also in strong opposition to Taube, due to her allowance was taken from the Hessian state and because of his fear that the king would marry her in the future and make her sons heirs to the Hessian throne, and through his envoy in Sweden, he pressured his brother to get rid of Taube. In the summer of 1740, the sons of Taube were sent to their estates in Holstein, and some time after, she left to join them, after having been threatened by the Hessian president Danckelmann with loss of her Hessian allowance, despite the Hat party's attempts to make her stay. However, she stopped halfway and stayed at the estate Östermalma near Nyköping with her brother-in-law count Wolter Reinhold Stackelberg.