On his recovery he was raised to the rank of lieutenant general, and was sent to Spain, to take command of the British and Portuguese troops in Cádiz, which was at that time closely invested by the French. The British Government attached great importance to the possession of Cádiz, as it was Britain's last stronghold in the Iberian Peninsula. But, as Sir William Napier remarked, while "money, troops, and a fleet—in fine, all things necessary to render Cádiz formidable—were collected, yet to little purpose, because procrastinating jealousy, ostentation, and a thousand absurdities, were the invariable attendants of Spanish armies and government".