United States presidential primary
There is no provision for the role of political parties in the United States Constitution, since the Founding Fathers did not originally intend for American politics to be partisan. In Federalist Papers No. 9 and No. 10, Alexander Hamilton and James Madison, respectively, wrote specifically about the dangers of domestic political factions. Thus in the first two presidential elections, the Electoral College handled the nominations and elections in 1789 and 1792 that selected George Washington. The beginnings of the American two-party system then emerged from Washington's immediate circle of advisors. Hamilton and Madison, who wrote the aforementioned Federalist Papers against political factions, ended up being the core leaders in this partisanship: Hamilton became the leader of Federalist Party while Madison co-helmed the Democratic-Republican Party with Thomas Jefferson.
United States Constitution
Two parties soon developed, one in opposition, the Anti-Federalists, and one in support, the Federalists, of the Constitution; and the Constitution was debated, criticized, and expounded upon clause by clause. Hamilton, Madison, and Jay, under the name of Publius, wrote a series of commentaries, now known as "The Federalist Papers", in support of ratification in the state of New York, at that time a hotbed of anti-Federalism. These commentaries on the Constitution, written during the struggle for ratification, have been frequently cited by the Supreme Court as an authoritative contemporary interpretation of the meaning of its provisions. The dispute over additional powers for the central government was close, and in some states ratification was effected only after a bitter struggle in the state convention itself.