After the fire , William III moved his London residence to nearby St James 's Palace .
The site was rebuilt to be used as government offices , and residential and commercial premises .
After the fire , William III moved his London residence to nearby St James 's Palace , and the site was rebuilt to be used as government offices , and residential and commercial premises .