The sight of the frigate riding peacefully at anchor in the harbor was torture to poor Bainbridge. In feverish letters he implored Preble to bombard the town, to sink the gunboats in the harbor, to recapture the frigate or to burn her at her moorings—anything to take away the bitterness of humiliation. The latter alternative, indeed, Preble had been revolving in his own mind.

Toward midnight of February 16, 1804, Bainbridge and his companions were aroused by the guns of the fort. They sprang to the window and witnessed the spectacle for which the unhappy captain had prayed long and devoutly. The Philadelphia was in flames—red, devouring flames, pouring out of her hold, climbing the rigging, licking her topmasts, forming fantastic columns—devastating, unconquerable flames—the frigate was doomed, doomed! And every now and then one of her guns would explode as though booming out her requiem. Bainbridge was avenged.

How had it all happened? The inception of this daring feat must be credited to Commodore Preble; the execution fell to young Stephen Decatur, lieutenant in command of the sloop Enterprise. The plan was this: to use the Intrepid, a captured Tripolitan ketch, as the instrument of destruction, equipping her with combustibles and ammunition, and if possible to burn the Philadelphia and other ships in the harbor while raking the Pasha's castle with the frigate's eighteen-pounders. When Decatur mustered his crew on the deck of the Enterprise and called for volunteers for this exploit, every man jack stepped forward. Not a man but was spoiling for excitement after months of tedious inactivity; not an American who did not covet a chance to avenge the loss of the Philadelphia. But all could not be used, and Decatur finally selected five officers and sixty-two men. On the night of the 3rd of February, the Intrepid set sail from Syracuse, accompanied by the brig Siren, which was to support the boarding party with her boats and cover their retreat.

Two weeks later, the Intrepid, barely distinguishable in the light of a new moon, drifted into the harbor of Tripoli. In the distance lay the unfortunate Philadelphia. The little ketch was now within range of the batteries, but she drifted on unmolested until within a hundred yards of the frigate. Then a hail came across the quiet bay. The pilot replied that he had lost his anchors and asked permission to make fast to the frigate for the night. The Tripolitan lookout grumbled assent. Ropes were then thrown out and the vessels were drawing together, when the cry "Americanas!" went up from the deck of the frigate. In a trice Decatur and his men had scrambled aboard and overpowered the crew.

It was a crucial moment. If Decatur's instructions had not been imperative, he would have thrown prudence to the winds and have tried to cut out the frigate and make off in her. There were those, indeed, who believed that he might have succeeded. But the Commodore's orders were to destroy the frigate. There was no alternative. Combustibles were brought on board, the match applied, and in a few moments the frigate was ablaze. Decatur and his men had barely time to regain the Intrepid and to cut her fasts. The whole affair had not taken more than twenty minutes, and no one was killed or even seriously wounded.

Pulling lustily at their sweeps, the crew of the Intrepid moved her slowly out of the harbor, in the light of the burning vessel. The guns of the fort were manned at last and were raining shot and shell wildly over the harbor. The jack-tars on the Intrepid seemed oblivious to danger, "commenting upon the beauty of the spray thrown up by the shot between us and the brilliant light of the ship, rather than calculating any danger," wrote Midshipman Morris. Then the starboard guns of the Philadelphia, as though instinct with purpose, began to send hot shot into the town. The crew yelled with delight and gave three cheers for the redoubtable old frigate. It was her last action, God bless her! Her cables soon burned, however, and she drifted ashore, there to blow up in one last supreme effort to avenge herself. At the entrance of the harbor the Intrepid found the boats of the Siren, and three days later both rejoined the squadron.

Thrilling as Decatur's feat was, it brought peace no nearer. The Pasha, infuriated by the loss of the Philadelphia, was more exorbitant than ever in his demands. There was nothing for it but to scour the Mediterranean for Tripolitan ships, maintain the blockade so far as weather permitted, and await the opportunity to reduce the city of Tripoli by bombardment. But Tripoli was a hard nut to crack. On the ocean side it was protected by forts and batteries and the harbor was guarded by a long line of reefs. Through the openings in this natural breakwater, the light-draft native craft could pass in and out to harass the blockading fleet.

It was Commodore Preble's plan to make a carefully concerted attack upon this stronghold as soon as summer weather conditions permitted. For this purpose he had strengthened his squadron at Syracuse by purchasing a number of flat-bottomed gunboats with which he hoped to engage the enemy in the shallow waters about Tripoli while his larger vessels shelled the town and batteries. He arrived off the African coast about the middle of July but encountered adverse weather, so that for several weeks he could accomplish nothing of consequence. Finally, on the 3rd of August, a memorable date in the annals of the American navy, he gave the signal for action.

The new gunboats were deployed in two divisions, one commanded by Decatur, and fully met expectations by capturing two enemy ships in most sanguinary, hand-to-hand fighting. Meantime the main squadron drew close in shore, so close, it is said, that the gunners of shore batteries could not depress their pieces sufficiently to score hits. All these preliminaries were watched with bated breath by the officers of the old Philadelphia from behind their prison bars.

The Pasha had viewed the approach of the American fleet with utter disdain. He promised the spectators who lined the terraces that they would witness some rare sport; they should see his gunboats put the enemy to flight. But as the American gunners began to get the range and pour shot into the town, and the Constitution with her heavy ordnance passed and repassed, delivering broadsides within three cables' length of the batteries, the Pasha's nerves were shattered and he fled precipitately to his bomb-proof shelter. No doubt the damage inflicted by this bombardment was very considerable, but Tripoli still defied the enemy. Four times within the next four weeks Preble repeated these assaults, pausing after each bombardment to ascertain what terms the Pasha had to offer; but the wily Yusuf was obdurate, knowing well enough that, if he waited, the gods of wind and storm would come to his aid and disperse the enemy's fleet.