Circumstances at length occurred which revived his hopes of seeing the honor of his country vindicated, and its relations with the Barbary powers established on a fair and firm basis. It has been stated that Hamet, the exiled Prince of Tripoli, had sought refuge in Tunis from the persecutions of his brother; he was there received and supported by the Bey, partly from compassion, but principally from political motives, as he might thus be employed to keep Yusuf in check. In the summer of 1801, it was suggested to Eaton by the ex-consul Cathcart, that the restoration of Hamet to the throne of Tripoli might in all probability be easily effected through the assistance of the United States, and that it would prove highly advantageous to American interests. Eaton at first paid but little attention to the suggestion; but afterwards having obtained information from Tripoli on which he could rely, that the Pasha was very unpopular, and his subjects ripe for revolt, he became acquainted with the Prince, and gradually communicated to him his views. He proposed that Hamet should proceed to Tripoli with the whole American squadron, and be there presented to the people as their rightful sovereign; if accepted, peace was to be made, on terms of which the principal were stated, one of them being the delivery of Yusuf to the Americans; if the inhabitants should however refuse to receive him, the war was to be prosecuted with vigor to a conclusion.
Hamet at first appeared to enter into the plan, and communicated information from which its success appeared still more probable; but his natural irresolution soon returned, and innumerable difficulties presented themselves to his imagination. The most serious ground of objection taken by him was, that his family were still retained as hostages in Tripoli, and the ruthlessness of his brother's character rendered it highly probable that he might exercise towards them any degree of violence, when prompted either by interest or revenge. To this, Eaton opposed the consideration, that the appearance of an overwhelming force, with the country too in arms against Yusuf, would impress upon him the inutility of resistance, and oblige him to enter into some arrangement for the release of Hamet's family, and the surrender of the throne. The exiled Prince would however make no promises, until he had been assured of the assistance of the American force, which Eaton immediately endeavored to obtain; but neither his instructions, nor those of the commander of the squadron, would warrant such proceedings; and indeed, as the proposition came from Eaton, it was of course reprobated and pronounced visionary by the latter. The consul therefore wrote to his government, detailing his plan, and urging its attention; and his health being much enfeebled, he determined to await an answer in Italy, for which country he sailed in December, 1801.