In 1837 this replaced St. James's Palace as England's official royal residence
... off 
duty to be replaced by the new guard on the forecourt of Buckingham Palace,... [DOC] [TLE] St. James's Palace - Dictionnaires [PAR] For this reason it gives its name to the Royal Court (the "Court of St James's").