The course of Mr. Adams relative to the application of the Greeks, then struggling for independence, for the aid and countenance of the United States, next brought him into opposition to the prevailing tendency of the popular feeling of the time. A letter was addressed to him, as Secretary of State, by Andrew Luriottis, envoy of the provisional government of the Greeks, at London, entreating that political and commercial relations might be established between the United States and Greece, and proposing to enter upon discussions which might lead to advantageous treaties between the two countries. Mr. Rush, the American minister in London, enclosed this letter to Mr. Adams, and recommended the subject to the favorable attention of our government. Mr. Adams, after expressing the sympathy of the American administration in the cause of Greek freedom and independence, and their best wishes for its success, proceeded to state that their duties precluded their taking part in the war, peace with all the world being the settled policy of the United States; but that if, in the progress of events, the Greeks should establish and organize an independent government, the United States would welcome them, and form with them such diplomatic and commercial relations as were suitable to their respective relations. Mr. Adams also wrote a letter to Mr. Rush, requesting him to explain to Mr. Luriottis that the executive of the United States sympathized with the Greek cause, and would render the Greeks any service consistent with neutrality; but that assistance given by the application of the public force or revenue would involve them in a war with the Sublime Porte, or perhaps with the Barbary powers; that such aid could not be given without an act of Congress, and that the policy of the United States was essentially pacific.

The popular feeling in favor of granting aid to the Greeks soon began to be general and intense. Balls were held and benefits given to raise funds for their relief, and sermons and orations delivered in their behalf, in many parts of the United States. "On this subject," Mr. Adams remarked, "there are two sources of eloquence: the one, with reference to sentiment and enthusiasm; the other, to action. For the Greeks all is enthusiasm. As for action, there is seldom an agreement, and after discussion the subject is apt to be left precisely where it was. Nothing definite, nothing practical, is proposed." The United States were at peace with the Sublime Porte, and he did not think slightly of a war with Turkey. He had not much esteem for that enthusiasm for the Greeks which evaporated in words.

In the ensuing session, on the 9th of January, 1824, Mr. Webster, in the Senate of the United States, proposed a resolve "that provision ought to be made by law for defraying the expense incident to the appointment of an agent or commissioner to Greece, whenever the President shall deem it expedient to make such appointment;" supporting it by a speech adapted to catch the popular tide, then at the full, and, in fact, doing nothing with the appearance of doing something. A member of Congress consulted Mr. Adams on an amendment he proposed to make to the project of Mr. Webster, as specified in his resolve, it being then under consideration in the House of Representatives. Mr. Adams replied, it was immaterial what form the resolution might assume; the objection to it would be the same in every form. It was, in his opinion, the intermeddling of the legislature with the duties of the executive; it was the adoption of Clay's South American system; seizing upon the popular feeling of the moment to embarrass the administration. A few days afterwards, Mr. Adams took occasion to state his reasons to Mr. Webster for being averse to his resolution.

Notwithstanding the Virginia doctrine, that the constitution does not authorize the application of public moneys to internal improvement, was one of the hinges on which the selection of candidates in the Southern States turned, Mr. Adams did not refrain from openly expressing his own opinion. In a letter to a gentleman in Maryland, dated January, 1824, he stated that "Congress does possess the power of appropriating money for public improvements. Roads and canals are among the most essential means of improving the condition of nations; and a people which should deliberately, by the organization of its authorized power, deprive itself of the faculty of multiplying its own blessings, would be as wise as a Creator who should undertake to constitute a human being without a heart."[10] ]

While the election of President was pending, and the event uncertain, a member of Congress from Ohio told Mr. Adams there were sanguine hopes of his success; on which he remarked: "We know so little of that in futurity which is best for ourselves, that whether I ought to wish for success is among the greatest uncertainties of the election. Were it possible to look with philosophical indifference to the event, that is the temper of mind to which I should aspire. But who can hold a firebrand in his hand by thinking of the frosty Caucasus? To suffer without feeling is not in human nature; and when I consider that to me alone, of all the candidates before the nation, failure of success would be equivalent to a vote of censure by the nation upon my past services, I cannot dissemble to myself that I have more at stake in the result than any other individual. Yet a man qualified for the duties of chief magistrate of ten millions of people should be a man proof alike to prosperous and adverse fortune. If I am able to bear success, I must be tempered to endure defeat. He who is equal to the task of serving a nation as her chief ruler must possess resources of a power to serve her, even against her own will. This I would impress indelibly on my own mind; and for a practical realization of which, in its proper result, I look for wisdom and strength from above."

At the close of the year 1824, Mr. Adams responded to a like intimation: "You will be disappointed. To me both alternatives are distressing in prospect. The most formidable is that of success. All the danger is on the pinnacle. The humiliation of failure will be so much more than compensated by the safety in which it will leave me, that I ought to regard it as a consummation devoutly to be wished."

At this period an apprehension being expressed to him that if he was elected Federalists would be excluded from office, he said, he should exclude no person for political opinion, or on account of personal opposition to him; but that his great object would be to break up the remnant of all party distinctions, and to bring the whole people together, in point of sentiment, as much as possible; and that he should turn no one out of office on account of his conduct or opinions in the approaching election.

The result of this electioneering conflict was, that, by the returns of the electoral colleges of the several states, it appeared that none of the candidates had the requisite constitutional majority; the whole number of votes being two hundred and sixty-one—of which Andrew Jackson had ninety-nine, John Quincy Adams eighty-four, William H. Crawford forty-one, and Henry Clay thirty-seven. For the office of Vice-President, John C. Calhoun had one hundred and eighty votes, and was elected.

This result had not been generally anticipated by the friends of Mr. Adams. His political course had been, for sixteen years, identified with the policy of the leading statesmen of the Southern States, and had been acceptable to that section of the Union. It had therefore been hoped that, with regard to him, the general and inherent antipathy to a Northern President, which there existed, would have been weakened, if not subdued. His diplomatic talents had been successfully exercised in carrying into effect Mr. Madison's views during the whole of that statesman's administration. He had been the pillar on which Mr. Monroe had, during both terms of his Presidency, leaned for support, if not for direction. It was, therefore, not without reason anticipated that at least a partial support would have been given to him in the region where the influences of Jefferson, Madison, and Monroe, were predominant. But, of the eighty-four votes cast for Mr. Adams, not one was given by either of the three great Southern slaveholding states. Seventy-seven were given to him by New England and New York. The other seven were cast by the Middle or recently admitted states.

The selection of President from the candidates now devolved on the House of Representatives, under the provisions of the constitution. But, again, Mr. Adams had the support of none of those slaveholding states, with the exception of Kentucky, and her delegates were equally divided between him and General Jackson. The decisive vote was, in effect, in the hands of Mr. Clay, then Speaker of the House, who cast it for Mr. Adams;[11] ] a responsibility he did not hesitate to assume, notwithstanding the equal division of the Kentucky delegation, and in defiance of a resolution passed by the Legislature of that state, declaring their preference for General Jackson.[12] ] On the final vote Andrew Jackson had seven votes, William H. Crawford four, and John Quincy Adams thirteen; who was, therefore, forthwith declared President of the United States for four years ensuing the 4th of March, 1825.