for the next several years, codrington fought alongside the spanish against the french in the mediterranean sea, commanding a squadron that harried french shipping and made numerous coastal raids. during this time also participated in the disastrous walcheren expedition in 1809.