In the War of the Third Coalition (1805–1806), he was in command of the squadrons blockading the ports of Rochefort and Ferrol, in which (among others) ships were being prepared for the invasion of England by Napoleon I. Calder held his position with a force greatly inferior to that of the enemy, and refused to be enticed out to sea.