Dispatched to protect American trade and seamen against depredations by the Barbary pirates, the squadron arrived at Gibraltar on 1 July 1801 and spent the ensuing year convoying American merchantmen and blockading Tripolitan ships in their ports.