The British expedition against Algiers was indeed prepared and supported entirely at the expense of the British nation, and conducted to its conclusion with that skill and gallantry, for the display of which the experience of ages gave the strongest assurance. For the first time also, was the abolition of Christian slavery in general, and the delivery of all Christian slaves required of a Barbary Power. These were indeed benefits to mankind, and the fact that Christians have not been since enslaved in Barbary, would seem of itself to offer a sufficient justification of the expedition; but history in every page warns us against estimating the propriety of measures by the importance of their consequences, however well ascertained. The engagement made by the Dey to abolish slavery in his dominions, was only of value as it gave those to whom it was made, a right to enforce its observance; experience had already proved that national faith was unknown in Barbary, and within three years after the promise had been given by Omar, his successor refused to abide by it. Algiers was left by Lord Exmouth in enjoyment of all the rights of an independent nation; the Dey could make war on whom he pleased, provided he did not enslave his prisoners, that is to say compel them to labor. Now this enslavement was but a small portion of the evil caused by the Barbary States; the number of persons reduced to servitude in them was never large, and the produce of their labor added to the sums received for their ransom, was scarcely more than sufficient to pay the expense of keeping them; their condition was indeed generally better than that of the prisoners of war in other countries. Piracy was the true ground of complaint against the Barbary Regencies, and more on account of the restraint it imposed upon the commerce of the lesser nations, than of the outrages actually committed. Without the support and encouragement of Great Britain, it would long since have ceased, and if the world owes her Government any thanks, it is for the adoption of a more just course of conduct by itself, for the abandonment of that selfish policy to which the Barbary States had so long been indebted for their impunity. Those who now entertain the political opinions which guided the British Administration in 1815 regard the bombardment of Algiers as a blunder, similar to the destruction of the Turkish fleet at Navarino, and the Conservative Journals of London occasionally express their regrets at the pursuance of that system which allows the vessels of all nations to navigate the Mediterranean without dreading the pirates of Africa.3

3 That no war was expected, appears clearly from the statement made in the House of Lords on the 3d of February, 1817, by Viscount Melville, then first Lord of the Admiralty, that "in the month of June when Lord Exmouth returned from the Mediterranean, with the fleet under his command, as usual at the close of a war, that fleet was dismantled and the crews paid off and disbanded. When the expedition against Algiers was determined upon, it became necessary to collect men," &c. On the same day Lord Castlereagh stated in the House of Commons, that "during the last session, when the thanks of the House were given to several of our gallant officers for their conduct in the late war, he entertained an earnest hope that a long course of years would have elapsed before it would be again necessary to perform that ceremony."

Notwithstanding the Dey's promise to Mr. Shaler, that he would observe the treaty of 1815 with the United States, the Consul saw from various circumstances, that he had determined to break it on the first favorable opportunity; and as a large American force was expected in the Mediterranean in the course of the summer, he sent letters to Gibraltar requesting the officer who might command it, to visit Algiers as soon as convenient. The American squadron consisting of a ship of the line, three frigates and two sloops under Commodore Isaac Chauncey, entered the Mediterranean about the middle of August, and appeared before Algiers immediately after the departure of the combined fleets. On its arrival Omar saw that he had been deceived as to the power of the Americans, and he therefore at once requested, that things might remain as they were until the receipt of the President's letter. Algiers was then entirely defenceless, the fortifications were in ruins, the soldiers dispirited and the people rebellious; a few broadsides from the American force would have battered the town to pieces. But it was determined between the Consul and Commodore Chauncey, that no advantage should be taken of the condition of things, to exact a specific acceptance of the treaty, and the Dey's request was acceded to; Mr. Shaler however quitted Algiers with the squadron, which sailed for Gibraltar to await the arrival of orders from the United States.

The President's reply came in December; it is but justice to the eminent persons (Madison and Monroe) who signed it, to say that it is remarkable for the dignity and temperance which pervade it. A series of arguments based on abstract principles of International Law or Political Economy, would have been addressed in vain to a merely clever barbarian, while diplomatic finesse would have been equally ineffectual, with those who never sincere themselves always suspect knavery in others. The impropriety of the complaints respecting the delay in restoring the brig, is simply and dearly exposed; and the fixed determination of the American Government with regard to a return to the principles on which the treaty of 1798 had been based, is conveyed in the assurance that "the United States while they wish for war with no nation, will buy peace with none, it being a principle incorporated into the settled policy of America, that as peace is better than war, so war is better than tribute." In conclusion, Mr. Shaler and Commodore Chauncey were authorized to communicate with the Dey, "for the purpose of terminating the subsisting differences by a mutual recognition and execution of the treaty of 1815."

The Commodore and Mr. Shaler on receiving their commissions, instantly sailed for Algiers with two of the ships, and proposed that the negotiation should be immediately commenced. Omar had been actively engaged, since the departure of Mr. Shaler in repairing his fortifications; but not considering them yet able to withstand an attack, he endeavored to gain time by insisting that the statu quo should continue for eight months, on the plea that the President had taken that space to make a reply to his letter. The Commissioners refusing to admit of any delay the Dey yielded; accordingly, the conduct of the negotiation on the part of the United States having been committed entirely to Mr. Shaler, he landed and on the 17th of December presented a note containing the ultimatum of his Government. The Dey was required to admit as a preliminary, that the stipulations of the treaty with regard to the restoration of the vessels had been scrupulously fulfilled by the United States; this being admitted, the treaty was to be renewed exactly in its original form, except that the eighteenth article might be altered, so as to annul that portion of it, which gave to the United States advantages in the ports of Algiers over the most favored nations; finally, as it was ascertained that a clause had been introduced into the Arabic translation of the said treaty, contrary to the understanding between the Dey and the American Commissioners who signed it, by which the United States were made to engage to pay a certain sum to Algiers, on the presentation of each of their Consuls, it was distinctly declared, "that no obligation binding the United States to pay any thing to the Regency or to its officers on any occasion whatever, will be agreed to."

The Dey struggled to avoid this additional humiliation, which he had brought upon himself by his ill-timed breach of faith; for he saw clearly that by submitting to it he was hastening the downfall of Algiers and his own destruction. But Shaler possessed in an eminent degree, these two essential qualities of a negotiator, courage and knowledge of the human heart; his contempt of danger had been manifested during the bombardment of the 27th of August; he had never deceived Omar, nor ever suffered him for a moment to suppose that he had been deceived by him, and by thus acting always, fairly and honestly towards him, he had acquired his respect and confidence. After a few days of discussion, the Dey in despair declared, that as misfortune had deprived him of the means of resistance, he would agree to the terms proposed or to any others which might be demanded, provided the Consul would give him a certificate under his hand and seal, that he had compelled him to do so. This was a strange request from an absolute sovereign; however Shaler saw that the unfortunate Omar was no longer at liberty to act as he pleased, but was the mere agent of his Divan; he therefore gave him the required acknowledgment, and the treaty was signed as dictated by the American Commissioners on the 23d of December, 1816.

From that period to the overthrow of the Algerine Government, the intercourse between the United States and this Regency was strictly peaceful. The treaty was rigidly observed by both parties, and a few trifling differences of a personal nature which occurred between the officers of the Government and those attached to the Consulate, were speedily and satisfactorily arranged. This continuation of pacific intercourse, is to be attributed in a great measure to the personal character of the American Consuls, to the respect which they acquired, nay, we are even warranted in saying, to the influence which they maintained over the members of the Algerine Government.

Omar continued his exertions to repair the losses occasioned by the bombardment, and he soon placed the city in a defensible condition; the Sultan presented him with a frigate and two corvettes, and he caused other ships of war to be built at Leghorn. But his popularity had been destroyed by the many adverse circumstances which had marked his reign; he was stigmatized as the unlucky, and a plague which ravaged Algiers in 1817 was attributed by the ignorant populace and soldiery to the influence of their ruler's evil star. Several conspiracies were formed against him, which he eluded by his vigilance, but he saw that his end was near, and with honorable forethought, he placed his mother and relations out of danger, by sending them back to his native isle of Mytelene. A plot was at length arranged, which was successful; the principal contrivers were Ali, a violent and fanatical Turk, who had assumed the title of Khogia or the scribe, a high literary and theological distinction, and Hussein an officer of repute for his talents, bravery and military skill. The soldiery and Divan entered into the conspiracy, and Omar was strangled on the 8th of September, 1817, without a hand or a voice having been raised in his defence.

Ali Khogia was immediately proclaimed Pasha, and he showed his gratitude to his coadjutor Hussein by making him his Prime Minister. The new Sovereign soon proved himself to be a monster of vice and cruelty, which were rendered still more shocking by his affectation of superior learning and sanctity. "When on public occasions, he was visited by the foreign Consuls," says Shaler, "they, after stumbling over scores of murdered carcases on their way to the hall of audience, always found the Pasha superbly dressed, surrounded by his guards, with a book in his hands, in the contemplation of which he would affect to be interrupted and precipitately lay it aside on their entrance." He set at naught the treaties with foreign nations, acting with violence towards persons living under the protection of their flags, and sending his cruisers to sea with orders to search their vessels, while the plague was raging in Algiers. By the active interposition of Mr. Shaler, the commerce and flag of the United States were respected, but several French and Sardinian vessels were taken under various pretences and brought into the ports of the Regency.

Ali Khogia was one of the many Deys, who endeavored to get rid of the foreign soldiery, and to render the crown hereditary in his own family. With this view he transferred his residence and the immense treasures of the State, from the old palace in the city, to the more secure residence of the Casauba, where he surrounded himself by a guard formed of natives; he then commenced his attacks on the Turks, of whom he is said to have despatched fifteen hundred during his short reign of four months. His course was suddenly arrested by the plague, of which he died in January, 1818.