Decatur, being unable to sight any more ships that looked like Moorish craft, and supposing that the rest of the pirate fleet would probably be making for Algiers, gave commands to his squadron to sail for that port. He was determined to bring the Dey to terms as quickly as possible, and to destroy his fleet, or bombard the city, if that was necessary. When he arrived off the Moorish town, however, he found none of the fleet there, and no apparent preparation for war in the harbor. The next morning he ran up the Swedish flag at the mainmast, and a white flag at the foremast, a signal asking the Swedish consul to come on board the flag-ship. Mr. Norderling, the consul, came out to the Guerrière, accompanied by the Algerine captain of the port. After some conversation Decatur asked the latter for news of the Dey's fleet. "By this time it is safe in some neutral port," was the assured answer.
"Not all of it," said Decatur, "for we have captured the Mashuda and the Estedio."
The Algerine could not believe this, and told the American so. Then Decatur sent for a wounded lieutenant of the Mashuda, who was on his ship, and bade him confirm the statement. The Moorish officer of the port immediately changed his tactics, dropped his haughty attitude, and gave Decatur to understand that he thought the Dey would be willing to make a new treaty of peace with the United States.
Decatur handed the Moor a letter from the President to the Dey, which stated that the Republic would only agree to peace provided Algiers would give up her claim to tribute and would cease molesting American merchantmen.
The Moor wanted to gain as much time as possible, hoping his fleet would arrive, and said that it was the custom to discuss all treaties in the palace on shore. Decatur understood the slow and crafty methods of these people, and answered that the treaty should be drawn up and signed on board the Guerrière or not at all. Seeing that there was no use in arguing with the American the Moorish officer went ashore to consult with the Dey.
Next day, June 30th, the captain of the port returned, with power to act for his Highness Omar Pasha. Decatur told him that he meant to put an end to these piratical attacks on Americans, and insisted that all his countrymen who were being held as slaves in Algiers should be given up, that the value of goods taken from them should be paid them, that the Dey should give the owners of the brig Edwin of Salem ten thousand dollars, that all Christians who escaped from Algiers to American ships should be free, and that the two nations should act toward each other exactly as other civilized countries did. Then the Moorish officer began to explain and argue. He said that it was not the present ruling Dey, Omar Pasha, called "Omar the Terrible" because of his great courage, who had attacked American ships; it was Hadji Ali, who was called the "Tiger" because of his cruelty, but he had been assassinated in March, and his prime minister, who succeeded him, had been killed the following month, and Omar Pasha was a friend of the United States. Decatur replied that his terms for peace could not be altered.
The Moor then asked for a truce while he should go ashore and confer with the Dey. Decatur said he would grant no truce. The Algerine besought him to make no attack for three hours. "Not a minute!" answered Decatur. "If your squadron appears before the treaty is actually signed by the Dey, and before the American prisoners are sent aboard, I will capture it!"
The Moorish captain said he would hurry at once to the Dey, and added that if the Americans should see his boat heading out to the Guerrière with a white flag in the bow they would know that Omar Pasha had agreed to Decatur's terms.
An hour later the Americans sighted an Algerine war-ship coming from the east. Decatur signaled his fleet to clear for action, and gave orders to his own men on the Guerrière. The fleet had hardly weighed anchor, however, before the small boat of the port captain was seen dashing out from shore, a white flag in the bow. The excited Moor waved to the crew of the flag-ship. As soon as the boat was near enough Decatur asked if the Dey had signed the treaty, and set the American captives free. The captain assured him of this, and a few minutes later his boat was alongside the flag-ship, and the Americans, who had been seized and held by the pirates, were given over to their countrymen. Some of them had been slaves for several years, and their delight knew no bounds.
In so short a time did Decatur succeed in bringing the Dey to better terms than he had made with any other country. When the treaty had been signed the Dey's prime minister said to the English consul, with reproach in his voice, "You told us that the Americans would be swept from the seas in six months by your navy, and now they make war upon us with some of your own vessels which they have taken." As a fact three of the ships in Decatur's squadron had actually been won from the English in the War of 1812.