Pops, when a guy like you suddenly starts talking about the Barbary pirates and 18th Century history, it's a pretty safe bet that they are not your original observations.
Our conflict with the Barbary powers started in the late 18th Century.<quoted text>
Actually we fought the Barbary Pirates in the 19th century.
"Morocco, which in 1777 was the first independent nation to publicly recognize the United States, became in 1784 the first Barbary power to seize an American vessel after independence. The Barbary threat led directly to the creation of the United States Navy in March 1794."
The two Barbary Wars occurred just after the turn of the century.