第一次バーバリ戦争
During the First Barbary War, he served aboard and later was first lieutenant (second in command) of . He then served under Captain John Rodgers on and USS "Essex". He was placed in charge of construction of gunboats in Newport and Westerly, Rhode Island.