After being withdrawn from Bomber Command in 1942, it operated with RAF Coastal Command through 1943 as a long-range torpedo bomber (the Hampden TB Mk I with a Mk XII torpedo in an open bomb bay and a 500 pounds bomb under each wing) and as a maritime reconnaissance aircraft.