 "Guerriere" under the command of Captain Stephen Decatur, he was part of the crew that went on in 1815 to attack the Barbary Pirates off the coast of Algeria.In 1820, Elam moved to Baton Rouge, Louisiana and became a lawyer.That year he married Rebecca Chambers.