He made several cruises, reached his lieutenancy, and was attached to the Essex when she went under Captain Bainbridge to the Mediterranean, in 1802. During the troubles the officers of the Essex had, at Barcelona, with the officers of the Spanish guardship, Decatur was conspicuous. Having been annoyed and insulted by the Spanish officers, on his way to and from his ship, he went aboard the Spaniard, and asked for her commanding officer. He was absent, and Decatur left this message, which he shouted out in his tremendous voice, on the Spanish quarterdeck: "Tell him that Lieutenant Decatur of the Essex declares him to be a scoundrelly coward; and if Lieutenant Decatur meets him ashore, he will cut his ears off!" A duel in the case was narrowly averted.
At twenty-four Decatur got his first command, the Argus, one of the two sixteen-gun brigs which were to assist Commodore Preble in the reduction of the Barbary powers. This was a heavier vessel than a young officer of Decatur's rank was entitled to, and he was given the command of her only to take her out of the Mediterranean, where he was to exchange with Isaac Hull, then a lieutenant commandant, and take Hull's vessel, the Enterprise, schooner, of twelve guns. The Enterprise, like the great frigates Constitution and Constellation, was a favorite of fortune. She had a glorious record for so small a vessel, and fought ten spirited actions during her career, winding up with the capture of the Boxer in the war of 1812-15. She was lucky also in escaping many times from superior force, and had an uninterrupted course of success. Her good fortune really consisted in the people who manned her, and the officers who commanded her,—of whom Decatur was not the least distinguished. He had the good fortune to have as his first lieutenant in the little schooner James Lawrence, a man after Decatur's own heart, who was worthy of his ship and his captain.
Decatur was one of the young commanders who took part in the council of war called by Commodore Preble at Gibraltar, in the autumn of 1803, at which the peppery commodore was so disgusted that he called them "a parcel of schoolboys." But most of them were shortly destined to immortality.
After collecting his force, Preble sailed for Syracuse, that historic city, beautiful in its decay. The object of the American commander was to establish a base of supplies, and to get the co-operation of the King of the Two Sicilies, who was also at war with the Bashaw of Tripoli. It was while at Syracuse, in the autumn of 1803, that the plan to destroy the Philadelphia in the harbor of Tripoli was determined upon. The credit of the original idea has been separately claimed for Preble, Bainbridge, and Decatur; and the fact probably is that it occurred at practically the same time to each one of them. Every one of Preble's dashing young captains desired the honor of making the attempt, and the fact that Decatur obtained the distinction is presumptive proof that he had a share in the first inception of the plan. Stewart's claim to a part in the undertaking was so strong that to him fell the honor of supporting, in the Siren, Decatur's proposed attack.
In order to look over the ground, Preble in the Constitution, accompanied by Decatur in the Enterprise, sailed for Tripoli, in December, 1803. Decatur, with his characteristic boldness, offered to make the attempt with the Enterprise; but Commodore Preble prudently concluded to use a ketch, the Meshouda, which Decatur had lately captured and which was of a build and rig common in Mediterranean waters.
As Decatur meant to get inside the harbor of Tripoli by stratagem, it was important to have a vessel that would not attract attention. The ketch was fittingly renamed the Intrepid, and preparations were begun for the desperate adventure with her.
Decatur was extremely anxious, as was Stewart, to cut the Philadelphia out; but Commodore Preble, as bold as they were, but older and more prudent, saw the insurmountable difficulties in the way of bringing so large a ship as the Philadelphia out of a dangerous and unknown harbor such as Tripoli. He therefore gave strict orders that no attempt should be made to carry her out, but that she should be destroyed at her moorings; and the commodore was certain to be obeyed.
The Intrepid was converted into a fire-ship, or "infernal." She was filled with combustibles, and it was designed that she should steal in at night in disguise, throw the combustibles into the Philadelphia, fire them, and then make a race for her life.
The nature of this enterprise required men of extraordinary steadiness as well as courage; but they could be easily supplied from the American squadron. It was intended to man and officer the Intrepid as far as possible from the Enterprise; and in pursuance of this, on the afternoon of the 3d of February, 1803, all hands on the Enterprise were called up and aft. Decatur then stated the nature of the service for which the Intrepid was destined,—a service of heroic possibilities but appalling danger,—and then called for sixty-two volunteers. Instead of sixty-two men, the whole ship's company down to the smallest boy volunteered with a cheer. This was what any captain would have desired, and Decatur was forced to make a choice. He selected sixty-two of the youngest and most active men in the crew, who showed their gratification by saying, "Thankee, sir," as each man was told off. He could make no choice among his lieutenants, but took them all—Lawrence, Joseph Bainbridge, and Thorn—and one of his midshipmen, the indomitable Macdonough, the rest being necessarily left to take care of the ship. He was compelled to make a draft of junior officers from the Constitution, and asked for midshipmen Morris, Laws, Izard, Davis, and Rowe. There was also a surgeon, Dr. Heermann, and Salvatore Catalano, a Sicilian pilot, who, in return for his services, was made a master in the American navy, and had an honorable career in it.
On the evening of the 3d of February the Intrepid sailed upon her glorious expedition, accompanied by the Siren, whose character as a ship of war was thoroughly concealed. The ketch was to pass for a merchant vessel from Malta, and her officers had the costumes of Maltese sailors in which to disguise themselves. The two vessels reached the entrance to the harbor of Tripoli on the 9th of February, but a terrific storm arose, which drove them off. For six days they were storm-tossed in the gulf of Sydra, but on the 16th of February they found themselves together again off Tripoli. The evening was mild and beautiful, and the wind was so light that the Siren was almost becalmed in the offing, but the Intrepid met a wandering breeze that carried her within the rocky harbor. Once inside, a good breeze was blowing, which swept them rapidly forward, and threatened to bring the Intrepid up with the Philadelphia before it was quite dark enough to do the work meant for her. As it would not do to excite suspicion by taking in sail, Decatur had buckets and sails towed astern which acted as a drag, and brought the ketch in very slowly. When Decatur noticed that the Siren in the offing had no wind and consequently could be of no assistance to him, he remarked cheerfully to his men, "Never mind; the fewer the number the greater the glory."