He wanted his wife's consent to marry another woman. Frederica Louisa agreed, on terms that included the payment of her debts. She would remain his queen while somebody else became his bride.
She went to court to serve the Queen of Prussia and married the queen's husband. The queen remained his wife. Sophie acquired a marriage ceremony, but considerably less say in her husband's affairs than she was prepared to accept.