Not long after his departure an Algerine corvette hove in sight at the entrance of the bay. The flagship made signal for a general chase, and Decatur himself bore down upon her in the "Guerrière." All this the Dey saw from his palace, and bitterly as he felt the humiliation, he did not long hesitate in affixing his signature and sending the treaty back. Soon the returning boat made its appearance, with the white flag hoisted which had been agreed upon as the signal that the treaty had been signed; and the commodore, who had prepared to board the Algerine and have a battle like the old contests before Tripoli, hauled off shore and returned to his moorings.

The boat approached rapidly, her progress quickened by the anxiety with which the captain of the port had watched the squadron's movements.

"Is the treaty signed?" asked the commodore in his peremptory way when the Swedish consul came on deck.

"It is here," replied the consul, as he delivered the document.

"And the prisoners?" continued Decatur.

"They are in the boat."

As they were speaking, the Americans, who after three years of confinement and suffering were now to be set free, reached the quarter-deck, where they were warmly greeted by their deliverer.

This prompt action of Decatur at Algiers, and the treaty which resulted from it, put an end forever to the piratical depredations of the Barbary States upon American commerce, and the example set by the United States was soon after followed by England, so that Mediterranean piracy in a short time thereafter ceased to exist. On the 8th of July the squadron weighed anchor and proceeded to Tunis. During the late war the neutrality of this port as well as that of Tripoli had been violated by British cruisers, which had seized within the two harbors the prizes of an American privateer, without opposition from the authorities. Commodore Decatur now proposed to obtain satisfaction for the outrage.