Barlow's college career was marked by close application to study, and won for him the respect and confidence of all with whom he came in contact. During his second year the war of the Revolution broke out, but the young poet, though an ardent patriot, clung to his books, resolutely closing his ears to the clamor of war that invaded his sacred cloisters until the long summer vacation arrived. Then he threw aside books and gown and joined his four brothers in the Continental ranks, where he did yeoman's service for his country. He graduated in 1778, and signalized the occasion by reciting an original poem called the "Prospect of Peace," which, in the quaint language of one of his contemporaries, gained him "a very pretty reputation as a poet."

The next year found him a chaplain in the Continental army, in the same brigade with his friend Dwight, later renowned as the poet-president of Yale College, and with Colonel Humphreys, whom we shall find associated with him in a far different mission. The two young chaplains, not content with the performance of their clerical duties, wrote in connection with Humphreys stirring patriotic lyrics that were set to music and sung by the soldiers around the camp-fires and on the weary march, and aided largely in allaying discontent and in inducing them to bear their hardships patiently.

For four years, or until the peace of 1783, Barlow continued to serve his country in the army: he left the service as poor as when he entered it, and a second time the question of a vocation in life presented itself. He at length chose the law, but before being admitted to practice performed an act which, however foolish it may have seemed to the worldly wise, proved to be one of the most fortunate events of his life. Although poor and possessing none of the qualities of the successful bread-winner, he united his fortunes with those of an amiable and charming young lady—Miss Ruth Baldwin of New Haven, daughter of Michael Baldwin, Esq., and sister of Hon. Abraham C. Baldwin, whom the student will remember as a Senator of note from Georgia. After marriage the young husband settled in Hartford, first in the study, and later in the practice, of the law. In Hartford we find him assuming the duties of lawyer, journalist and bookseller, and in all proving the truth of the fact often noted, that the possession of literary talent generally unfits one for the rough, every-day work of the world. As a lawyer Barlow lacked the smoothness and suavity of the practised advocate, while the petty details and trickeries of the profession disgusted him. As an editor he made his journal, the American Mercury, notable for the high literary and moral excellence of its articles, but it was not successful financially, simply because it lacked a constituency sufficiently cultured to appreciate and sustain it. His bookstore, which stood on the quiet, elm-shaded main street of the then provincial village, was opened to dispose of his psalm-book and poems, and was closed when this was accomplished.

As a poet, however, he was more successful, and it was here that the assurance of literary ability, so dear to the heart of the neophyte, first came to him. Dr. Watts's "imitation" of the Psalms, incomplete and inappropriate in many respects, was then the only version within reach of the Puritan churches, and in 1785 the Congregational Association of Connecticut applied to the poet for a revised edition of the work. Barlow readily complied, and published his revision the same year, adding to it several psalms which Dr. Watts had omitted. This work was received with marked favor by the Congregational churches, and was used by them exclusively until rumors of the author's lapse from orthodoxy reached them, when it was superseded by a version prepared by Dr. Dwight.

Two years after, in 1787, Barlow published his Vision of Columbus, a poem conceived while in the army and largely written during the poet's summer vacations at Reading. It was received with unbounded favor by his patriotic countrymen, and after passing through several editions at home was republished both in London and Paris, and made its author the best known American in the literary circles of his day. There was in Hartford at this time a coterie of literary spirits whose sprightliness and bonhomie had gained for them the sobriquet of the "Hartford Wits." Dr. Lemuel Hopkins was doubtless the chief factor in the organization of this club: Barlow, John Trumbull, Colonel Humphreys, Richard Alsop and Theodore Dwight—all of whom had gained literary distinction—were its chief members. The principal publications of the club were the Anarchiad, a satirical poem, and the Echo, which consisted of a series of papers in verse lampooning the social and political follies of the day. To both of these, it is said, Barlow was a prominent contributor. He was also a prominent figure in the organization, about this time, of the Connecticut Cincinnati, a society formed by Revolutionary officers for urging upon Congress their claims for services rendered in the Revolution.

In these varied pursuits and amid such pleasant associations three years passed away, but during all this time the grim spectre of Want had menaced the poet—first at a distance, but with each succeeding month approaching nearer and nearer, until now, in 1788, it stared him in the face. His patrimony had been nearly exhausted in his education; his law-business was unremunerative; his paper, as we have said, was not a success financially; and his poetry brought him much more honor than cash. And thus it happened that at the age of thirty-four he found himself without money or employment. At this trying juncture there came from the West—fruitful parent of such schemes!—the prospectus of the Scioto Land Company, furnished with glaring head-lines and seductive phrases, and parading in its list of stockholders scores of the best-known names in the community. This company claimed to have become the fortunate possessor of unnumbered acres in the valley of the Scioto, and was anxious to share its good fortune—for a consideration—with Eastern and European capitalists. It was desirous of securing an agent to negotiate its sales in Europe, and, quite naturally, its choice fell on Joel Barlow, the only American having a reputation abroad who was at liberty to undertake the mission; and, since the company bore a good repute and offered fair remuneration, the poet very gladly embraced its offer. He does not seem to have met with much success in England, but in France his reception was much more encouraging. An estate in the New World was a veritable château en Espagne to the mercurial Frenchmen, and they purchased with some avidity; but just as the agent's ground was prepared for a plenteous harvest news came that the Scioto Company had burst, as bubbles will, leaving to its dupes only a number of well-executed maps, some worthless parchments called deeds, and that valuable experience which comes with a knowledge of the ways of the world. Barlow, being the company's principal agent abroad, came in for his full share of the abuse excited by its operations; and yet it is evident that he was as innocent of its real character as any one, and that he had accepted the position of agent with full confidence in the company's integrity. Its collapse left him as poor as ever, and a stranger in a strange land, notwithstanding he was surrounded here by conditions that assured him the generous and honorable career which had been denied him in the New World.

Of the foreigners who then thronged cosmopolitan Paris, none were so popular as Americans. Benjamin Franklin and Silas Deane, by their courtesy and dignity, joined to republican simplicity, had provided passports for their countrymen to the good graces of all Frenchmen: besides, the name "republican" was a word of magic import in France at that time. Barlow's reputation as a poet was also of great service to him at a time when literature exercised a commanding influence both in society and politics. He was presented at court, admitted to the companionship of wits and savants, and was enabled, by the favor of some financial magnates, to participate in speculations which proved so successful that in a short time he was raised above the pressure of want. But in less than a year after his arrival the Revolution broke out, and involved him in its horrors. His sympathies were entirely with the Girondists—the party of the literati, and the most patriotic and enlightened of the rival factions. He is said to have entered heartily into the advocacy of their cause, writing pamphlets and addresses in their interest and contributing frequently to their journals: he is also said to have figured prominently at the meetings of the Girondist leaders held in the salon of Madame Roland. The atrocities of the Jacobins, however, so shocked and disgusted him that he shortly withdrew and went into retirement outside of the city. The greater part of the years 1791-92 he spent in England, with occasional visits to France. During one of these visits the privileges of French citizenship were conferred on him—an honor that had been previously conferred on but two Americans, Washington and Hamilton.

In 1795 a crisis in his fortunes occurred, and from this date the story of his life becomes an interesting and important one. He had been for some months on a business-tour through the northern provinces, and, returning to Paris early in September, was surprised at receiving a visit from his old friend Colonel David Humphreys, who had been American minister to Portugal for some years, and was now in Paris on a political mission. He was accompanied on this visit by James Monroe, then American minister at the French court. They bore a commission from President Washington naming Barlow consul at Algiers, and their object was to induce him to accept the appointment. The post was one of extreme difficulty and danger, and had Barlow consulted his own wishes and interests he would undoubtedly have declined it. But by appeals to his philanthropy, and by representations that from his knowledge of courts and experience of the world he was well fitted for the performance of the duties assigned to him, he was at length induced to accept the commission. Preparations were at once made for the journey. His business-affairs were arranged and his will made: then, bidding his wife farewell, he set out with Humphreys on the 12th of September, 1795, for Lisbon, en route for the Barbary coast.

At the time of Barlow's mission Algiers was at the height of its power and arrogance. Great Britain, France, Spain, Holland, Denmark, Sweden and Venice were tributaries of this barbarous state, which waged successful war with Russia, Austria, Portugal, Naples, Sardinia, Genoa and Malta. Its first depredation on American commerce was committed on the 25th of July, 1785, when the schooner Maria, Stevens master, owned in Boston, was seized off Cape St. Vincent by a corsair and carried into Algiers. Five days later the ship Dauphin of Philadelphia, Captain O'Brien, was taken and carried into the same port. Other captures quickly followed, so that at the time of Barlow's mission there were one hundred and twenty American citizens in the Algerine prisons, exclusive of some forty that had been liberated by death or ransomed through the private exertions of their friends.

The course pursued by Congress for the liberation of these captives cannot be viewed with complacency even at this late day. After some hesitation it decided to ransom the prisoners, and proceeded to negotiate—first, through Mr. John Lamb, its agent at Algiers, and secondly through the general of the Mathurins, a religious order of France instituted in early times for the redemption of Christian captives from the infidel powers. These negotiations extended through a period of six years, and accomplished nothing, from the fact that the dey invariably demanded double the sum which Congress thought it could afford to pay. In June, 1792, with the hope of negotiating a treaty and rescuing the captives, the celebrated John Paul Jones was appointed consul to Algiers, but died before reaching the scene of his mission. His successor, Mr. Thomas Barclay, died at Lisbon January 19, 1793, while on his way to Algiers. The conduct of Barbary affairs was next confided to Colonel Humphreys, our minister to Portugal, with power to name an agent who should act under him, and Mr. Pierre E. Skjoldebrand, a brother of the Swedish consul, was appointed under this arrangement; but the latter gentleman seems to have been no more successful than his predecessors. Late in 1794, Humphreys returned to America, and while here it was arranged that Joseph Donaldson should accompany him on his return as agent for Tunis and Tripoli, while Barlow, it was hoped, could be induced to accept the mission to Algiers and the general oversight of Barbary affairs.