Joel Barlow was the early Republicâs most tenacious diplomat, a cheerful volunteer for difficult missions. His hard-won treaties with Algiers, Tunis, and Tripoli ended, at least briefly, the attacks of Barbary pirates on American shipping in the Mediterranean.