In 1779 he was made Chief of Staff or Captain of the Fleet under Admiral Sir Charles Hardy on which was to lead a hastily assembled fleet to oppose an invasion of England set to begin with the destruction of the Portsmouth naval base by the French and Spanish Armada of 1779.