The following year, Decatur attempted to gain the open sea from New York, through Long Island Sound, with the Macedonian and Hornet. A British squadron of superior force, however, compelled him to run into the Thames River in Connecticut, and he lay off New London for months unable to get to sea. He was naturally impatient at being thus cooped up, and bitterly complained that traitors on shore, by means of "blue lights," warned the enemy whenever at night he prepared to break out of his imprisonment. He sent a challenge to Commander Sir Thomas Hardy of the blockading squadron, offering to fight two of the British frigates with two of his own, but the offer was declined and Decatur's frigates were afterward dismantled.

Returning to New York, he assumed command of a squadron bound for the East Indies, and put to sea in the President. January 14, 1815, through the blunder of his pilot, his ship heavily grounded while going out. The next morning, Decatur discovered the British squadron in pursuit, consisting of the Majestic razee, the Endymion, Tenedos, and Pomona frigates and a brig. Of these the Endymion was the fleetest. After drawing her away from the rest, Decatur turned and attacked her. She was crippled and her battery silenced, when the American resumed her flight. By this time, however, the other ships had come up and opened fire. Escape was impossible and Decatur surrendered to the British squadron.

Returning to the United States under parole, he was despatched to the Mediterranean, on the conclusion of peace, to punish the Algerine pirates that were preying upon our commerce. He did his work thoroughly and well, compelling the Dey to sign the most humiliating treaty ever made with a Christian nation. He obtained similar redress at Tunis and Tripoli.

Decatur was subsequently created Navy Commissioner and made his residence in Washington at Kalorama, formerly occupied by Joel Benton.

Commodore Barron's suspension began February 8, 1808. He resorted to the merchant service, and was abroad when war was declared. His suspension terminated about eight months afterward, some time after which he reported himself to the navy department, by letter, for duty, the war continuing two years after his becoming available for command. He did not return to the United States until the close of 1818. He declared that he had used every effort to reach home before during hostilities, but was prevented. A court, presided over by Captain Charles Stewart, afterward declared its judgment that such effort had not been made by Barron.

The latter felt resentful toward Decatur, and called him to account for certain expressions he had been told were used by him reflecting upon his conduct as an officer. When appealed to, Decatur, as Navy Commissioner, declared that he held no personal enmity toward Barron; he deemed it unjust to other officers of the navy that his request to be restored to command should be granted.

Barron opened a sharp correspondence with Decatur, which continued nearly a year. Mutual friends, or rather enemies, fanned the trouble between them, which ended in a challenge from Barron which was promptly accepted by Decatur. The duel took place at Bladensburg, on the morning of March 22, 1820, Commodore Bainbridge was Decatur's second, and Captain Jesse D. Elliott served Barron in a similar capacity. Decatur chivalrously surrendered his right to name the distance, which Barron made the shortest possible, eight paces, on account of his defective eyesight. Decatur was without a superior as a pistol shot, and, declaring that he did not wish the life of his antagonist, said he would only wound him in the hip.

At the word "two," both fired so exactly together, that only one report was heard. Barron was struck in the right hip, as Decatur intended, and sank to the ground. Decatur stood erect a moment and was seen to turn pale, compress his lips, and press his hand against his side. Then he fell, the ball having passed through his abdomen.

"I am mortally wounded," he said, "and wish that it had been in the defence of my country." His attendants helped him to his feet, and started slowly toward the waiting carriage. His pain was so great that after a few paces he sank exhausted, near where Barron was stretched on the ground. While the two thus lay near each other, waiting to be carried off, they shook hands, and each freely forgave the other.

Decatur was lifted into the carriage, which reached Washington at half-past ten. He would not allow himself to be carried into his home until his wife and two nieces were sent to the upper floor where they could not see the dreadful sight. Wishing to save the distracted ones from the grief of witnessing his suffering, he refused them permission to enter the room where he lay.