The hospital was created as the Royal Hospital for Seamen at Greenwich on the instructions of Queen Mary II, who had been inspired by the sight of wounded sailors returning from the Battle of La Hogue in 1692. She ordered the King Charles wing of the palace—originally designed by architect John Webb for King Charles II in 1664—to be remodelled as a naval hospital to provide a counterpart for the Chelsea Hospital for soldiers. Sir Christopher Wren and his assistant Nicholas Hawksmoor gave their services free of charge as architects of the new Royal Hospital. Sir John Vanbrugh succeeded Wren as architect, completing the complex to Wren's original plans.