From 1695 to 1701, "William and Mary"s captain was Sir William Saunderson. In 1702 Captain William Robinson replace Sanderson. Robinson was in command when she participated in the battle of Malaga in 1704. He remained in command until January 1713, when she was paid off and sent to Deptford Dockyard for repairs, which were completed by December 1714.