 The Cockpit was used to house government officials.It was first occupied by HM Treasury, whose offices elsewhere in the palace had been destroyed, until the Treasury moved to a new building on Horse Guards Road in 1734.When Anne became queen after the death of William in 1702, she gave the residence to her loyal friends John and Sarah, now Duke and Duchess of Marlborough.