Although the house survived as an official building – being used for the lying-in-state of Commonwealth Generals-at-Sea Richard Dean (1653) and Robert Blake (1657) – the main palace was progressively demolished from the 1660s to 1690s and replaced by the Royal Hospital for Seamen,[11] built 1696-1751 to the master-plan of Sir Christopher Wren. This is now called the Old Royal Naval College, after its later use from 1873 to 1998. The position of the house, and Queen Mary II's order that it retain its view to the river (only gained on demolition of the older Palace), dictated Wren's Hospital design of two matching pairs of 'courts' separated by a grand 'visto' exactly the width of the house (115 ft).