After von Kattel died Frederick was granted a royal pardon and released from his cell on 18 November, but he was not given back his military rank. Instead of returning to Berlin, however, he was forced to stay in Küstrin and began learning statecraft and administration for the War and Estates Departments on 20 November. Tensions eased slightly when Frederick William visited Küstrin a year later, and Frederick was allowed to visit Berlin on the occasion of his sister Wilhelmina's marriage to Margrave Frederick of Bayreuth on 20 November 1731. The crown prince returned to Berlin after finally being released from Küstrin on 26 February 1732.