He had then secured the few men on deck, and soon had possession of the brig. The British batteries on shore opened fire on him, but Preble managed to take the vessel out without serious damage and without losing a man.

At the end of the Revolution the navy practically ceased to exist, and Preble went into the merchant service, as so many of the officers were forced to do. But in 1798, when the quasi war with France took place, he re-entered the navy, which had been created anew. He was commissioned lieutenant in 1798, and was lucky enough the very next year to get the Essex, frigate of thirty-two guns. In her he started on what was then the longest cruise ever made by an American man-of-war. He went to the Indian Seas, to give convoy to a valuable fleet of merchant vessels engaged in the China and India trade, and which were liable to be attacked by French cruisers. He had no opportunity to distinguish himself especially in this duty, although he took care of the ships and got them all safely to New York. Soon afterward, the United States and France having come to terms, Preble went ashore and remained for two years. His health was bad in the beginning, but being much improved, in 1803 he reported for duty, and was assigned to the Constitution, forty-four guns, then preparing for a Mediterranean cruise.

At that time the relations of the United States with the piratical powers of the Barbary coast were most unsatisfactory. After years of submission to their exactions,—a submission which seems almost incredible now,—the United States government determined to do in the end what it should have done in the beginning. This was to send a powerful squadron to attack these pirates of the land as well as the sea, and to force them to respect the persons and liberties of Americans. Preble was given the command of this squadron, with orders to punish Algiers, Morocco, Tunis, and especially Tripoli, so that it would not soon be forgotten. He hoisted the broad pennant of a commodore on the Constitution, and had under him the Philadelphia, a heavy frigate of thirty-eight guns, and five small vessels,—the Enterprise, Argus, Nautilus, Vixen, and Siren. It was a remarkable squadron in many ways. The Constitution was probably the heaviest frigate afloat, and able to withstand a cannonade as well as any line-of-battle ship. In Preble she had a commander worthy of her.

Preble was then about forty years of age, and his temper had not been sweetened by dyspepsia, of which he had been a victim for a long time. The Constitution was destined, under his command, to win for herself the famous name of "Old Ironsides" from the way in which her stout timbers resisted the tremendous cannonade of the forts and fleets at Tripoli. It was in this splendid cruise, too, that she gained her well-maintained reputation for being a lucky ship. In all her great battles she never lost her commanding officer, nor did any great slaughter ever take place on her decks, nor was she ever dismasted or seriously injured by war or weather, nor did she ever take the ground. Up to this time the Constellation had been the favorite frigate of the navy, but, beginning with Preble's great cruise, the Constitution became, once and for all, the darling ship, not only of the navy but of the nation.

The only other heavy frigate in the squadron was the Philadelphia, thirty-eight guns, commanded by Captain William Bainbridge. Her tragic fate and the glorious manner in which it was avenged is one of the immortal incidents of the American navy.[7]

The five small vessels were commanded by five young men, lieutenants commandant, according to the rank of the day, of which three—Hull, Decatur, and Stewart—reached the greatest distinction. Somers, the fourth, had a short but glorious career. The fifth, Captain Smith, was a brave and capable officer, but his name has been overshadowed by the four young captains, who made a truly extraordinary constellation of genius. Among the midshipmen in the squadron were two, Thomas MacDonough and James Lawrence, who achieved reputations equal to the three great captains.

In the summer of 1803 the squadron sailed, as each ship was ready, for Gibraltar, which was the rendezvous. On the way out, the young officers on the Constitution had a taste of the commodore's temper, which was far from pleasing to them; but they also found out that he had an excellent heart, and even a strict sense of justice, as soon as his explosions of wrath were over. And before very long they discovered the qualities of promptness, courage, and capacity which made Commodore Preble a really great commander. While off Gibraltar, on a dark night, the Constitution found herself quite close to a large ship. Preble immediately sent the men to quarters, for fear the stranger might be an enemy, and hailing began. The stranger seemed more anxious to ask questions than to answer them. This angered the fiery commodore, and he directed his first lieutenant to say if the ship did not give her name he would give her a shot. The stranger called back: "If you give me a shot, I'll give you a broadside." Preble, at this, seized the trumpet himself, and, springing into the mizzen rigging, bawled out: "This is the United States ship Constitution, forty-four guns, Commodore Edward Preble. I am about to hail you for the last time. If you do not answer, I will give you a broadside. What ship is that? Blow your matches, boys!" The answer then came: "This is his Britannic Majesty's ship Donegal, razee, of eighty guns."

"I don't believe you," answered Preble, "and I shall stick by you till morning to make sure of your character." In a few minutes a boat came alongside, with an officer, who explained that the stranger was the Maidstone, frigate, of thirty-eight guns, and the delay in answering the hails and the false name given were because the Constitution had got close so unexpectedly that they wanted time to get the people to quarters in case she should prove an enemy. This one incident is said to have worked a complete revolution in the feelings of the officers and men toward Preble; and although he was as stern and strict as ever, they could not but admire his firmness and cool courage in an emergency.

Arrived at Gibraltar, Preble met for the first time his five young captains. Not one was twenty-five years of age, and none was married. At the first council of war held aboard the Constitution there was a universal shyness on their part when asked their views by the commodore. The fame of the "old man's" temper and severity had preceded him, and his boy captains felt no disposition whatever to either advise him or to disagree with him. When the council was over, Preble remained in the cabin, leaning his head on his hand, and quite overcome with dejection and depression. To Colonel Lear, an American consul, then on board, Preble bitterly remarked: "I have been indiscreet in accepting this command. Had I known how I was to be supported, I certainly should have declined it. Government has sent me here a parcel of schoolboys, to command all my light craft!"