Gaining sudden popularity, he was temporarily given supreme command as lieutenant admiral of the confederate fleet on 23 July 1665, but had to give up this function (but not rank) the next month in favour of Lieutenant Admiral Michiel de Ruyter; he fought, having been transferred to the Admiralty of Amsterdam on 6 February 1666, under the latter in the Four Days Battle and the St. James's Day Battle.